1、关闭防火墙
systemctl stop firewalld
systemctl disable firewalld
systemctl status firewalld
systemctl is-enabled firewalld
2、关闭selinux
sed -i “s/SELINUX=enforcing/SELINUX=disabled/g” /etc/sysconfig/selinux
cat /etc/sysconfig/selinux
1、关闭防火墙
systemctl stop firewalld
systemctl disable firewalld
systemctl status firewalld
systemctl is-enabled firewalld
2、关闭selinux
sed -i “s/SELINUX=enforcing/SELINUX=disabled/g” /etc/sysconfig/selinux
cat /etc/sysconfig/selinux