CentOS 8 关闭防火墙
4734 人阅读 | 时间:2019年10月28日 15:53
关闭SELINUX、firewalld
大部分时间对折两个自带的防火墙用不着,所以直接关闭:
查看运行状态:
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
即可。
©著作权归作者所有:来自ZhiKuGroup博客作者没文化的原创作品,如需转载,请注明出处,否则将追究法律责任
来源:ZhiKuGroup博客,欢迎分享。
评论专区