Ubuntu 10.4上的postgresql在启动时无法启动

前端之家收集整理的这篇文章主要介绍了Ubuntu 10.4上的postgresql在启动时无法启动前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试在ubuntu服务器10.04(64位)上启动 postgresql 8.4.

首先,我尝试了:su -c’pg_ctl start -D / home / postgres -l / home / postgres / serverlog’-preserve-environment postgres
在init.d / rc.local的末尾,无济于事. serverlog文件甚至不在系统上.

然后我尝试运行update-rc.d postgresql-8.4默认值,它喷出:

/etc/init.d/postgresql-8.4的系统启动/停止链接已存在.

一条相关的信息是通过以root身份运行su -c’pg_ctl start -D / home / postgres -l / home / postgres / serverlog’–preserve-environment postgres而没有–preserve-environment标志,它没有’认识到pg_ctl.否则,服务启动,我可以连接到数据库.但即使保留了环境,在init文件中运行时也不会启动该服务.

有什么线索吗?
谢谢!
维克.

chkconfig postgresql报告什么?
您应该能够在ubuntu中以root身份执行chkconfig postgresql以将其打开.
http://manpages.ubuntu.com/manpages/lucid/man8/chkconfig.8.html
原文链接:https://www.f2er.com/ubuntu/348279.html

猜你在找的Ubuntu相关文章