- 关闭防火墙
- 关闭SELinux
- 清空iptables规则
systemctl stop firewalld.service systemctl disable firewalld.service关闭SELinux
SELinux是Linux的一个安全机制,关掉方便我们做测试
setenforce 0
使用vi /etc/selinux/config命令编辑selinux配置文件。将文件中的SELINUX=enforcing更改为SELINUX=disabled。
需要重启
iptables -F清空规则
iptables -L查看规则



