不可能运行postgresql与homebrew试图运行作为根[关闭]

ztigrdn8  于 2023-11-18  发布在  PostgreSQL
关注(0)|答案(1)|浏览(164)

**已关闭。**此问题为not about programming or software development。目前不接受回答。

此问题似乎与a specific programming problem, a software algorithm, or software tools primarily used by programmers无关。如果您认为此问题与another Stack Exchange site的主题相关,可以发表评论,说明在何处可以回答此问题。
2天前关闭。
Improve this question
我试图在我的索诺马14. 1 M1 Pro MacBook上安装和运行PostgreSQL。但是,服务总是处于错误19968状态。我已经尝试了这个post中的每一个解决方案,但没有任何成功。
这里有更多关于它的细节:

➜  ~ brew services list
Name              Status       User   File
mongodb-community started      adrien ~/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist
postgresql@14     error  19968 root   ~/Library/LaunchAgents/[email protected]
unbound           none                
➜  ~ tail -n 100 /opt/homebrew/var/log/postg[email protected]
"root" execution of the PostgreSQL server is not permitted.
The server must be started under an unprivileged user ID to prevent
possible system security compromise.  See the documentation for
more information on how to properly start the server.

字符串

hmmo2u0o

hmmo2u0o1#

通过运行修复:

➜  ~ brew services stop postgresql
➜  ~ sudo chown -R $(whoami) $(brew --prefix)/*
➜  ~ brew services start postgresql

字符串
感谢这个问题resolved

相关问题