一、关闭防火墙
1、systemctl status firewalld (查看状态)
2、systemctl stop firewalld (停止,重启后失效)
3、systemctl start firewalld (开启)
4、systemctl disable firewalld (永久关闭)
二、关闭SElinux
1、getenforce (查看状态)
2、vi /etc/selinux/config
SELINUX=enforcing (生效)
SELINUX=disabled (禁用)