大部分时间对折两个自带的防火墙用不着,所以直接关闭:
查看运行状态:
systemctl status firewalld
禁止开机启动:
systemctl disable firewalld
停止运行
systemctl stop firewalld
关闭SElinux
查看运行状态:
getenforce
如果现实Enforcing
说明是开启状态。
编辑配置文件:
vim /etc/selinux/config
内容大概如下:
# This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded.SELINUX=enforcing# SELINUXTYPE= can take one of these three values: # targeted - Targeted processes are protected, # minimum - Modification of targeted policy. Only selected processes are protected. # mls - Multi Level Security protection.SELINUXTYPE=targeted
将SELINUX=enforcing
修改为 SELINUX=disabled
即可。
评论专区