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