centos 7 禁用 selinux 禁用防火墙

1、禁用selinux

/sbin/setenforce 0
sed -i 's\SELINUX=enforcing\SELINUX=disabled\' /etc/selinux/config

2、禁用防火墙

systemctl stop firewalld.service 
systemctl disable firewalld.service

猜你喜欢

转载自blog.51cto.com/mydbs/2454880