nginx -c nginx.confg可以运行成功,但是service nginx start 启动失败
解决:
cp /etc/selinux/config /etc/selinux/config.bak
cat /etc/selinux/config
sed -i 's/SELINUX=enforcing/\SELINUX=permissive/' /etc/selinux/config
# 查看selinux状态:
getenforce
reboot
nginx -c nginx.confg可以运行成功,但是service nginx start 启动失败
解决:
cp /etc/selinux/config /etc/selinux/config.bak
cat /etc/selinux/config
sed -i 's/SELINUX=enforcing/\SELINUX=permissive/' /etc/selinux/config
# 查看selinux状态:
getenforce
reboot