美文网首页
关闭selinux

关闭selinux

作者: 邦_ | 来源:发表于2023-10-15 10:21 被阅读0次

不关闭的话会阻止nginx访问文件夹

查看当前状态


getenforce


Enforcing 是策略生效状态

临时关闭


setenforce 0


或者设置文件夹可以访问


chcon -Rt httpd_sys_content_t '/home/liubang/桌面/THS'

相关文章

网友评论

      本文标题:关闭selinux

      本文链接:https://www.haomeiwen.com/subject/hljtidtx.html