在Lion(Mac OS 10.7)上 不能关闭PostgreSQL server的问题

英姿勃发 发布于 2011/08/05 09:44
阅读 1K+
收藏 1

我安装了PostgreSQL,但是不能关闭。

$ #started with $ pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start$ #tried stoping with $ pg_ctl -D /usr/local/var/postgres stop -m immediate
waiting for server to shut down................................... failed
pg_ctl: server does not shut down

谢。
加载中
1
jobell
jobell

$ #started with $ pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start$ 

#tried stoping with $ pg_ctl -D /usr/local/var/postgres stop -m immediate waiting

waiting for server to shut down................................... failed

pg_ctl: server does not shut down

去看看日志报的是什么错误呀。贴出日志才好给回答。

0
老枪
老枪

用上狮子了?haha。试试这个:

删除:LaunchAgents

launchctl unload -w ~/Library/LaunchAgents/org.postgresql.postgres.plist
rm ~/Library/LaunchAgents/org.postgresql.postgres.plist

返回顶部
顶部