CentOS开启端口教程

admin Linux 11个月前 1070℃ 3
摘要:

运行iptables-IINPUT-ptcp-mmultiport–dport80,443,8080,3306,8989,9001,9002,9003,53-jACC...

1.jpg

运行

iptables -I INPUT -p tcp -m multiport –dport 80,443,8080,3306,8989,9001,9002,9003,53 -j ACCEPT;


保存

service iptables save;service iptables restart;

查看

iptables -nvL

80,443,8080,3306,8989,9001,9002,9003,53是你要开的端口


原创文章转载请注明:转载自:CentOS开启端口


Tags: