无法使用尝试以 root 身份运行的自制软件来运行 postgresql

问题描述 投票:0回答:1

我正在尝试在我的 Sonoma 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/[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.
database postgresql macos homebrew
1个回答
0
投票

通过运行修复:

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

感谢这个问题已解决

© www.soinside.com 2019 - 2024. All rights reserved.