centos 7 配置ip 关闭防火墙禁止开机启动

2. 关闭防火墙和selinux
[root@localhost ~]# systemctl stop firewalld.service #停止firewall
[root@localhost ~]# systemctl disable firewalld.service #禁止firewall开机启动
[root@localhost ~]# vi /etc/selinux/config
SELINUX=disabled
[root@localhost ~]# reboot

浙公网安备 33010602011771号