使用root权限:
Linux关闭防火墙: 1. chkconfig –list|grep iptables 2. chkconfig iptables off 永久关闭防火墙 3. chkconfig iptables on 永久开启防火墙
关闭SELinux: 编辑/etc/sysconfig/selinux文件 设置:SELINUX=disabled
转载于:https://www.cnblogs.com/liufei-yes/p/5068714.html