linux 开发防火墙端口 关闭端口命令 : iptables -A OUTPUT -p tcp --dport 端口号-j DROP 开放端口号命令 : iptables -A INPUT -ptcp --dport 端口号 -j ACCEPT 查看开放的端口的命令 : netstat -anp