查看端口的方法: 最常用的方法: 1,netstat -an 2,lsof -i 以上两个命令通过查询网络堆栈列举正在监听网络的端口。 eg:检查某一端口的监听信息 netstat -anp | grep 端口号 lsof -i | grep 端口号 将81端口对外开放 iptables -A INPUT -p tcp --dport 81 -j ACCEPT /*允许包从81端口进入*/ httpd.conf 配置