关闭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