我正在安装postgres,可能已经安装了两次。第一次安装似乎是使用一个密码旋转postgres服务器,我不得不承认我不记得了。
我使用netstat -vanp tcp | grep 5432确定PID,然后使用ps aux | grep 560查找程序(如下所示)
postgres 560 0.0 0.0 408830848 2208 ?? Ss 18Apr22 0:10.26 /Library/PostgreSQL/14/bin/postmaster -D /Library/PostgreSQL/14/data如何防止这个程序自动启动?
编辑:我在M1 mac上用蒙特利12.3.1
EDIT2:我已经运行了sudo launchctl list | grep post,能够找到下面的postgres程序
560 0 postgresql-14现在我正在研究如何从launchctl中删除它
发布于 2022-05-03 21:09:45
可以通过运行systemctl命令启用或禁用在启动时运行的服务。
sudo systemctl disable postgres https://stackoverflow.com/questions/72105429
复制相似问题