正在使用Postgres.app端口 [英] Postgres.app port in use

查看:106
本文介绍了正在使用Postgres.app端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试启动服务器并收到错误消息

 端口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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆