Linux开放指定端口
super
2021-02-08 18:06

开启8080端口
/sbin/iptables -I INPUT -p tcp --dport 8080 -j ACCEPT
开启3306端口
/sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT
注:请使用root权限
0 条讨论