我用经典的命令安装postgresql 10:
brew安装postgresql@10
然后我开始了这项服务:
brew服务启动postgresql@10
产出显示:
成功启动postgresql@10 (标签: homebrew.mxcl.postgresql@10)
但是当我运行这个命令时:
brew服务
我得到的是:
Name Status User Plist
cassandra stopped
postgresql stopped
postgresql@10 error username /opt/homebrew/opt/postgresql@10/homebrew.mxcl.postgresql@10.plist 似乎服务在不正常运行。以前我有另一个版本的Posgresql。这是第10版,但安装程序提供了,但postgresql的网页。不过我应该把它移走的。
我使用此命令查看已使用的端口:
lsof -nP +c 15 | grep LISTEN而且我没有使用端口5432 (postgresql使用的默认端口)的服务。
发布于 2021-10-11 15:43:30
我分享了进一步调查的程序,也许能解决这个问题。
/opt/homebrew/opt/postgresql@10/homebrew.mxcl.postgresql@10.plist。此路径由brew services命令提供。StandardErrorPath /opt/homebrew/var/log/postgresql@10.log
https://stackoverflow.com/questions/69524900
复制相似问题