我试图找出为什么我的posgresql无法启动启动..我手动运行在terminal
# chkconfig postgresql on # service postgresql start /usr/bin/chcon: can't apply partial context to unlabelled file /var/lib/pgsql/pgstartup.log Initalizing database: [ OK ] Starting postgresql service: [ OK ]
有任何想法吗?
它看起来像/var/lib/pgsql/pgstartup.log没有SELinux标签,所以SELinux阻止postgres访问它。 有关SELinux标签的更多信息,请参阅此页面 。