不关闭的话会阻止nginx访问文件夹
查看当前状态
getenforce
Enforcing 是策略生效状态
临时关闭
setenforce 0
或者设置文件夹可以访问
chcon -Rt httpd_sys_content_t '/home/liubang/桌面/THS'
不关闭的话会阻止nginx访问文件夹
查看当前状态
getenforce
Enforcing 是策略生效状态
临时关闭
setenforce 0
或者设置文件夹可以访问
chcon -Rt httpd_sys_content_t '/home/liubang/桌面/THS'
本文标题:关闭selinux
本文链接:https://www.haomeiwen.com/subject/hljtidtx.html
网友评论