[root@XM ~]#cat /etc/selinux/config ##selinux的路徑 [root@XM ~]#sed 's#SELINUX=enforcing#SELINX=disabled#g' /etc/selinux/config ##修改加-i [root@XM ...
一 緣由 在安裝zabbix的時候,按照官網的Zabbix Manual一路跑下來,zabbix的dashboard提示:zabbix server is not runningthe information displayed may not be current。后來google后關閉selinux,Zabbix服務正常。 因為:SELinux出於安全考慮,會阻止zabbix server的h ...
2016-03-03 16:24 0 1751 推薦指數:
[root@XM ~]#cat /etc/selinux/config ##selinux的路徑 [root@XM ~]#sed 's#SELINUX=enforcing#SELINX=disabled#g' /etc/selinux/config ##修改加-i [root@XM ...
第一種臨時關閉-重啟服務器失效[root@oldboyedu-01 ~]# #查詢selinux狀態[root@oldboyedu-01 ~]# getenforce Enforcing[root@oldboyedu-01 ~]# #enforcing selinux正在 ...
selinux防火牆狀態,如: setenforce 0用於關閉selinux防火牆,但重啟后失效 ...
一、查看SELinux狀態: 1、我們可以通過查看配置文件的命令 cat /etc/selinux/config 來查看狀態 發現SELinux共有3個狀態enforcing (執行中)、permissive (不執行但產生警告)、disabled(關閉)。 2,也可以用這個命令檢查 ...
selinux防火牆狀態,如: setenforce 0用於關閉selinux防火牆,但重啟后失效 ...
1.下載工具semanage yum provides semanage 查看該命令包含在哪個軟件包里 截圖紅框部分就是包含該命令的安裝包。 直接安裝這個安裝包就可以了 yum install policy... 可以用tab補全。 2.查看端口 ...
一般安裝linux課程時都把SELinux與iptables安排在后面,使初學者配置linux服務器時不成功,卻沒有頭緒,那是因為在RedHat linux操作系統中默認開啟了防火牆,SELinux也處於啟動狀態,一般狀態為enforing。致使很多服務端口默認是關閉的。所以好多服務初學者明明 ...
以下介紹一下SELinux相關的工具/usr/bin/setenforce 修改SELinux的實時運行模式setenforce 1 設置SELinux 成為enforcing模式setenforce 0 設置SELinux 成為permissive模式如果要徹底禁用SELinux 需要在/etc ...