title: psql: could not connect to server [ubuntu]
body: <p>Under the postgres user, I tried the <code>psql</code> command and I'm getting this error:</p>
  
  <blockquote>
    <p>psql: could not connect to server: No such file or directory
        Is the server running locally and accepting
        connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"</p>
  </blockquote>
  
  <p>But when I run <code>/usr/local/pgsql/bin/psql</code>, it is working.</p>
  
  <p>Is there anything wrong with my configuration?</p>