RedHat 关闭防火墙 + 优化SELinux

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接: https://blog.csdn.net/daoxu_hjl/article/details/85642931

关闭防火墙:

  

#立即关闭防火墙
service iptables stop  
#永久关闭防火墙:下次开机才会生效
chkconfig iptables off
#查看防火墙开机启动模式
chkconfig --list iptables

优化SELinux:

#当前临时切换SELinux模式到Permissive
setenforce 0

#查看
getenforce

#永久切换:修改配置文件 SELINUX 属性值

vim /etc/sysconfig/selinux

SELINUX=Permissive

猜你喜欢

转载自blog.csdn.net/daoxu_hjl/article/details/85642931
今日推荐