赞
踩
service iptables stop
永久关闭防火墙(关机重启才会生效)
chkconfig iptables off
getenforce /查看防火墙是否设置永久关闭
[root@12r2 ~]# getenforce
Enforcing
[root@12r2 ~]#vi /etc/selinux/config
SELINUX=disabled 改此部分
[root@12r2 ~]# getenforce
Disabled /修改成功
[root@12r2 ~]#
此时防火墙不会随虚拟机开机自启:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。