gpt4 book ai didi

macos - PostgreSQL 服务器不会在 Lion (Mac OS 10.7) 上关闭

转载 作者:行者123 更新时间:2023-11-29 11:05:42 24 4
gpt4 key购买 nike

我在 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

我通过删除 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

关于macos - PostgreSQL 服务器不会在 Lion (Mac OS 10.7) 上关闭,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6950395/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com