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

原文地址:https://www.cnblogs.com/testing-BH/p/11726681.html