[英]Copied C9 Workspace with Rails app, PostgreSQL service won't start: permission denied
我只是使用功能正常的Ruby on Rails应用程序复制了C9工作区,似乎无法运行PostgreSQL服务。
运行此命令:
sudo service postgresql start
返回此错误:
The PostgreSQL server failed to start. Please check the log output:
2017-08-15 06:50:57 UTC FATAL: could not remove old lock file "postmaster.pid": Permission denied
2017-08-15 06:50:57 UTC HINT: The file seems accidentally left over, but it could not be removed. Please remove the file by hand and try again.
删除此文件手册并再次运行后:
The PostgreSQL server failed to start. Please check the log output:
2017-08-15 07:01:45 UTC FATAL: could not access private key file "/etc/ssl/private/ssl-cert-snakeoil.key": Permission denied
我猜我需要设置一些对PostgreSQL的访问权限,但是我不确定该怎么做。 有任何想法吗?
通过运行以下命令修复它:
gpasswd -a postgres ssl-cert
然后启动postgresql服务器,一切正常!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.