CentOS7Selinux设置
生活随笔
收集整理的這篇文章主要介紹了
CentOS7Selinux设置
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
Selinux
vi /etc/sysconfig/selinux
SELINUX=enforcing
改為
SELINUX=disabled
臨時關(guān)閉selinux setenforce 0
臨時開啟selinux
setenforce 1
查看 selinux
getenforce
nginx在開啟Selinux時自定義目錄
vi /etc/nginx/nginx.conf
user root;
chcon -R -u system_u /usr/share/nginx/html
chcon -R -t usr_t /usr/share/nginx/html
chcon -R -u system_u /root/dam/html
chcon -R -t usr_t /root/dam/html
原文地址:www.holdlg.com/post/centos…
總結(jié)
以上是生活随笔為你收集整理的CentOS7Selinux设置的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 热门的“挑战视频”,凭什么火起来的?
- 下一篇: Nginx 服务并发过10万的Linux