防火墙层面: /sbin/iptables -I INPUT -p tcp --dport 8011 -j ACCEPT #开启8011端口 /etc/rc.d/init.d/iptables save #保存配置 /etc/rc.d/init.d/iptables restart #重启服务 查看端口是否已经开放 /etc/init.d/iptables status 查看端口: netstat -pan|grep 2809 本博文来源于:https://www.cnblogs.com/haha12/p/4468217.html 来源:https://www.cnblogs.com/Small-sunshine/p/11733098.html 标签 iptables linux开放端口 linux系统 etc