postgres@lxq/home/llx$ psql
psql: could not connect to server: 没有那个文件或目录
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
#3 楼@pongyo lll@lll:~$ psql -h 127.0.0.1
psql: could not connect to server: 拒绝连接
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 5432?