如何在Debian Squeeze上重新启动postgresql 8.4?
/etc/init.d/postgresql stop/start/restart什么都不做(没有输出)。
从在线文档 …
pg_ctl restart [-w] [-t seconds] [-s] [-D datadir] [-c] [-ms[mart] | f[ast] | i[mmediate] ] [-o options]
pg_ctl是一个用于启动,停止或重新启动PostgreSQL后端服务器(postgres)的实用程序,或者显示正在运行的服务器的状态。 尽pipe服务器可以手动启动,但pg_ctl封装了redirect日志输出和正确分离terminal和进程组等任务。 它还提供了控制关机的方便选项。
哦,因为我在你的答案中忽略了这个细节,但现在有理由怀疑它… postgresql 8.4的默认位置是: /etc/init.d/postgresql-8.4 ,而不是/etc/init.d/postgresql就像你在你的问题中一样。