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

 

posted @ 2019-10-23 15:47  Leo包子  阅读(290)  评论(0)    收藏  举报