admin管理员组文章数量:1618705
启动postgresql: brew services start postgresql
报错信息如下:
Error: Failure while executing; `/bin/launchctl bootstrap gui/501 /Users/xxx/Library/LaunchAgents/homebrew.mxcl.postgresql@14.plist` exited with 5.
vi /Users/xxx/Library/LaunchAgents/homebrew.mxcl.postgresql@14.plist这个文件
接着查看log: vi /usr/local/var/log/postgresql@14.log
可以看到 这个错误:could not open lock file "/tmp/.s.PGSQL.5432.lock": Permission denied
一开始一直以为权限问题,执行chmod,删除都没有作用。
后百度,发现不是这个文件的问题,在试验脚本的过程中没关闭数据库。执行ls -l /tmp/,列出隐藏文件,删除tmp下跟postgresql有关的隐藏文件就ok了。
参考链接:
pg启动异常FATAL: could not open lock file "/tmp/.s.PGSQL.5432.lock": Permission denied_sunshinepx的博客-CSDN博客
本文标签: 异常failureexecutingpgError
版权声明:本文标题:pg启动异常:Error: Failure while executing; `binlaunchctl bootstrap gui501 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/dongtai/1728785642a1173290.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论