简体   繁体   English

PostgreSQL安装

[英]Postgresql installation

I'm going crazy with postgresql (9.1) installation on my server (debian) i have rent on gandi.net ! 我在服务器(debian)上安装PostgreSQL(9.1)感到疯狂,我在gandi.net上租了房! I did the aptitude get-install postgresql postgresql-client command. 我做了aptitude get-install postgresql postgresql-client命令。

I'm having this error when trying to execute psql command. 尝试执行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"?

I've been searching on the web. 我一直在网上搜索。 And maybe the servers are not running. 也许服务器未运行。 I don't know how to check and how to launch them. 我不知道如何检查以及如何启动它们。

My postgres command doesn't work either (command not found). 我的postgres命令也不起作用(找不到命令)。

Any idea? 任何想法?

The database engine is not running. 数据库引擎未运行。

service postgresql start

or 要么

/etc/init.d/postgresql start

to start the engine. 启动引擎。 I don't remember though if debian initializes the data dir automatically. 我不记得debian是否会自动初始化数据目录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM