数据文件权限

PostgreSQL数据文件权限不对导致开机启动失败

时光毁灭记忆、已成空白 提交于 2019-12-02 22:53:43
上午开发告知机子重启后DB连接不了了,登进去一开,确实,进程啥的都没有起来。 手工启动: [postgres @develop ~]$ pg_start server starting [postgres @develop ~]$ps -ef|grep postgres 发现还是没起来,查看日志,里面有如此报错信息: [postgres @develop ~]$ tail -f pg_log FATAL: data directory "/home/postgres/data" has wrong ownership HINT: The server must be started by the user that owns the data directory. FATAL: data directory "/home/postgres/data" has wrong ownership HINT: The server must be started by the user that owns the data directory. FATAL: data directory "/home/postgres/data" has wrong ownership HINT: The server must be started by the user that owns the