RedHat SELinux turn off the firewall + optimization

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/daoxu_hjl/article/details/85642931

Turn off the firewall:

  

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

 

Optimization SELinux:

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

#查看
getenforce

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

vim /etc/sysconfig/selinux

SELINUX=Permissive

 

Guess you like

Origin blog.csdn.net/daoxu_hjl/article/details/85642931