我正在尝试在ubuntu服务器10.04(64位)上启动
postgresql 8.4.
原文链接:https://www.f2er.com/ubuntu/348279.html首先,我尝试了: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文件中运行时也不会启动该服务.
有什么线索吗?
谢谢!
维克.