2.1 关闭防火墙
CentOS系统
# systemctl disable --now firewalld
Ubuntu系统
# ufw disable
2.2 关闭selinux
# setenforce 0# sed -i 's/^SELINUX=enforcing$/SELINUX=disabled/' /etc/selinux/config
Ubutun系统
不需要做这一步