centos7 永久关闭防火墙和selinux 文心快码BaiduComate 在CentOS 7上永久关闭防火墙和SELinux,可以按照以下步骤操作: 1. 查找并备份防火墙和SELinux的配置文件 备份防火墙配置文件: bash sudo cp /etc/sysconfig/iptables /etc/sysconfig/iptables.bak 备份SELinux配置文件: bash sudo cp /etc/selinux/config /etc/...
SELINUX=enforcing 改为 SELINUX=disabled #注释掉 #SELINUXTYPE=targeted 重启服务reboot 2.firewalld服务 firewalld服务启用/停用 启动一个服务:systemctl start firewalld.service 关闭一个服务:systemctl stop firewalld.service 重启一个服务:systemctl restart firewalld.service 显示一个服务的状态:systemctl ...