部署好的虚拟机centos7nginx服务器访问不了,Unable to open primary script: (Permission denied)”,selinux设置

原来是昨天很多资料都提醒的selinux,

https://blog.csdn.net/u012129607/article/details/80773930

关闭selinux
临时关闭:
sudo setenforce 01
永久关闭: vim /etc/selinux/config
将SELINUX=enforcing改为SELINUX=disabled,
保存后退出 然后重启 reboot

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注