关闭SELinux和iptables防火墙

2023-07-30,,

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]

关闭SELinux和iptables防火墙的相关教程结束。

《关闭SELinux和iptables防火墙.doc》

下载本文的Word格式文档,以方便收藏与打印。