Ubuntu PostgreSQL服务起动报错 FATAL: could not create lock file “postmaster.pid”: Permission denied

修改/var/lib/postgresql/10/main目录的权限,,重启postgresql服务即可

root@ubuntu-HSB:/var/lib/postgresql/10/main# chmod 700 /var/lib/postgresql/10/main

root@ubuntu-HSB:/var/lib/postgresql/10/main# sudo /etc/init.d/postgresql restart

猜你喜欢

转载自blog.csdn.net/yangxuzhong/article/details/88825121