PostgreSQL服务器不会在Lion上关闭(Mac OS 10.7) [英] PostgreSQL server wouldn't shutdown on Lion (Mac OS 10.7)
本文介绍了PostgreSQL服务器不会在Lion上关闭(Mac OS 10.7)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Lion上使用Homebrew安装了PostgreSQL.它可以正常启动,但不会关闭.我试过了:
I installed PostgreSQL using Homebrew on Lion. It starts okay but wouldn't shutdown. I tried:
$ #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
我通过删除启动代理来解决此问题:
I fixed this issue by deleting the Launch Agent:
launchctl unload -w ~/Library/LaunchAgents/org.postgresql.postgres.plist
rm ~/Library/LaunchAgents/org.postgresql.postgres.plist
推荐答案
launchctl unload -w ~/Library/LaunchAgents/org.postgresql.postgres.plist
rm ~/Library/LaunchAgents/org.postgresql.postgres.plist
这篇关于PostgreSQL服务器不会在Lion上关闭(Mac OS 10.7)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文