Debian

當沒有定義集群時,如何在 Debian Squeeze 上重新啟動 postgresql 8.4?

  • May 9, 2015

如何在 Debian Squeeze 上重啟 postgresql 8.4?

/etc/init.d/postgresql stop/start/restart什麼都不做(沒有給出輸出)。

從線上文件

pg_ctl restart [-w] [-t seconds] [-s] [-D datadir] [-c] [-m s[mart] | f[ast] | i[mmediate] ] [-o options]

pg_ctl 是一個用於啟動、停止或重新啟動 PostgreSQL 後端伺服器 (postgres) 或顯示正在執行的伺服器狀態的實用程序。雖然可以手動啟動伺服器,但 pg_ctl 封裝了重定向日誌輸出和正確脫離終端和程序組等任務。它還為受控關閉提供了方便的選項。

哦,因為我在你的回答中忽略了這個細節,但現在有理由質疑它…… postgresql 8.4 的預設位置是:/etc/init.d/postgresql-8.4,而不是/etc/init.d/postgresql你在問題中的位置。

引用自:https://serverfault.com/questions/419884