CentOS 6 关闭防火墙和selinux
2020-08-14 本文已影响0人
网络小乙
- 关闭防火墙
service iptables status #查看防火墙的状态
service iptables stop #停止防火墙
chkconfig iptables off #永久关闭防火墙
- 关闭SELINUX
sestatus #查看selinux状态
setenforce #临时关闭SeLinux
如果要永久关闭SeLinux,需要修改配置文件/etc/selinux/config,将SELINUX置为disabled,然后重启系统。