Postgresql安装

Postgresql安装,postgresql,Postgresql,我在我的服务器(debian)上安装postgresql(9.1)快疯了,我在gandi.net上租了一台! 我执行了aptitude get install postgresql-postgresql-client命令 我在尝试执行psql命令时遇到了这个错误 psql: could not connect to server: No such file or directory Is the server running locally and accepting connections o

我在我的服务器(debian)上安装postgresql(9.1)快疯了,我在gandi.net上租了一台! 我执行了
aptitude get install postgresql-postgresql-client
命令

我在尝试执行psql命令时遇到了这个错误

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"?
我一直在网上搜索。也许服务器没有运行。我不知道如何检查和如何启动它们

我的postgres命令也不起作用(找不到命令)


知道吗?

数据库引擎没有运行

service postgresql start


启动引擎。我不记得debian是否自动初始化数据目录。

不知何故,安装失败了,否则postgres将启动并运行。建议:卸载并重新安装,但保存并发布安装的输出,以便分析和检查错误。除此之外,请阅读
/etc/init.d/postgresql start