小编jer*_*e12的帖子

Postgresql 致命:无法创建锁定文件“/var/run/postgresql/.s.PGSQL.5432.lock”:权限被拒绝

我尝试启动 postgresql :/usr/pgsql-11/bin/pg_ctl -D appli/postgres/data/ -l logfile start 但我不明白为什么我的日志文件中总是出现此错误:

FATAL:  could not create lock file "/var/run/postgresql/.s.PGSQL.5432.lock": Permission denied
Run Code Online (Sandbox Code Playgroud)

我尝试更改权限,但总是权限被拒绝:

chown -R postgres:postgres /var/run/postgresql
chmod 755 /var/run/postgresql
Run Code Online (Sandbox Code Playgroud)

postgresql

8
推荐指数
1
解决办法
1万
查看次数

标签 统计

postgresql ×1