我想在Ubuntu上安装postgresql。 我遵循http://hocuspokus.net/2008/05/install-postgresql-on-ubuntu-804/的步骤。无法连接到Ubuntu的Postgres
而上键入命令:
psql template1
我收到以下错误:
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"?
如果你运行'/etc/init.d/postgresql的status'它告诉你它的运行? – sdolan
它说“没有这样的文件或目录” – ramya
如果你是'ls -l /etc/init.d/ | grep postgres',你看见什么了吗? – sdolan