Ubuntu 重启后 postgres 无法启动

Ubuntu 重启后 postgres 无法启动

我不熟悉 ubuntu(raring),所以有人可以帮我吗:

我正在使用 apt 中的 postgresql 9.1。它在 中安装了适当的 init 脚本/etc/init.d/postgresql。我可以使用脚本手动启动服务器。但是,postgres 不会在启动时启动。我发出了 和update-rc.d postgresql defaults(update-rc.d postgresql enable以 root 身份),但这没有帮助。

有没有具体的启动日志,因为我在系统日志中找不到任何东西?谢谢大家

EDIT2:好的,问题似乎是 sysvinit 与 upstart 的问题。如果我删除以下符号链接/etc/rcX

sudo update-rc.d -f remove postgresql

并添加新贵脚本启动 postgresql 时,它会按预期启动。由于 postgresql 来自官方 apt repo,我想知道为什么它不能开箱即用?

答案1

您使用的是服务器版还是桌面版。

通常情况下,Postgres 在 ubuntu 上开箱即用,但我总是使用 ubuntu 服务器 LTS。我认为该问题是由 raring 版本安装程序的一些不一致引起的。

相关内容