正在使用Postgres.app端口 [英] Postgres.app port in use
问题描述
我正在尝试启动服务器并收到错误消息
端口5432已在使用
我已执行brew install postgress
哪个postgres
什么都不会给我。
<活动监视器有14个postgres进程,我无法将其杀死。
强制退出以终止该进程,并使用另一个pid重新启动它。
与
sudo kill -9 PID一样
会杀死该进程并使用另一个PID重新启动它。
您是否检查了启动守护进程?当Postgres与Homebrew一起安装时,它控制Postgres进程,并在杀死它后自动重新启动Postgres。尝试
sudo launchctl list
或
sudo launchctl list | fgrep postg
查找守护进程的名称。您可以使用 sudo launchctl stop< name>
停止守护进程,其中 name
取决于第一个命令的结果。
I am trying to start the server and getting an error
Port 5432 is already in use
I have brew uninstall postgress
which postgres
gives me nothing.
Activity monitor has 14 postgres processes which I cannot kill.
Force quit kill the process and restarts it with another pid.
The same with
sudo kill -9 PID
it kills the process and restarts it with another PID.
Have you checked for a launch daemon? It controls the Postgres process when Postgres is installed with Homebrew, and it automatically restarts Postgres after it is killed. Try
sudo launchctl list
or
sudo launchctl list | fgrep postg
to find the name of the daemon. You can stop the daemon with sudo launchctl stop <name>
where name
depends on the result of the first command.
这篇关于正在使用Postgres.app端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!