本人遇到的问题是,装在docker centos容器里的postgresql,在重启容器之后,发现pg没有启动起来(之前已设置为开机自启),pg服务状态信息如下:
-----------------------------
本人的解决办法是修改 /var/lib/pgsql目录的归属用户:
[root@ds1 lib]# chown -R postgres:postgres pgsql
然后启动服务就成功了。
思路:
切换到postgres用户时报了一个错
所以就联想到了归属问题。