Q:Linux怎么开关端口 A:开启端口: iptables -A INPUT -ptcp –dport 端口号-j ACCEPT 关闭端口: iptables -A OUTPUT -p tcp –dport 端口号-j DROP 保存设置: service iptables save