osx – PostgreSQL服务器不会关闭Lion(Mac OS 10.7)

前端之家收集整理的这篇文章主要介绍了osx – PostgreSQL服务器不会关闭Lion(Mac OS 10.7)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我在Lion上使用Homebrew安装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

我通过删除启动代理来解决此问题:

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
原文链接:https://www.f2er.com/postgresql/193798.html

猜你在找的Postgre SQL相关文章