When I started PostgreSQL server with specific database cluster on Ubuntu 14.04, the client coundn’t connect to the server.

After I changed ‘unix_socket_directories’ in the postgresql.conf, it worked.