關閉SELinux和iptables防火牆


1、關閉SELinux:

編輯SELinux配置文件:    

[root@Redis selinux]# vim /etc/selinux/config

修改SELINUX配置項為disable

SELINUX=disabled

 

2、關閉iptables防火牆:

清除iptables的配置文件條目: 

[root@Redis selinux]# iptables -F
[root@Redis selinux]# iptables -X
[root@Redis selinux]# iptables -Z 

查看iptables配置文件條目  

[root@Redis selinux]# iptables -L

停止iptables服務:

[root@track local]# service iptables stop

關閉iptables啟動項:

[root@17track local]# chkconfig iptables off

 

[THE END]


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM