我要疯狂地使用postgresql (9.1)安装在我的服务器(debian)上,我在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命令也不起作用(命令找不到)。
有什么想法吗?
发布于 2014-01-17 15:27:50
数据库引擎没有运行。
service postgresql start或
/etc/init.d/postgresql start启动引擎。不过,我不记得debian是否自动初始化数据dir。
https://stackoverflow.com/questions/21188971
复制相似问题