【发布时间】:2021-11-30 03:03:18
【问题描述】:
我使用经典命令安装了 postgresql 10:
brew install postgresql@10
然后我启动了服务:
brew services 启动 postgresql@10
输出显示:
成功启动postgresql@10(标签:homebrew.mxcl.postgresql@10)
但是当我运行这个命令时:
酿造服务
这是我得到的:
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 使用的默认端口)的服务。
【问题讨论】:
标签: postgresql macos homebrew