centos6开放端口命令

1、第一步,修改端口号   /sbin/iptables -I INPUT -p tcp --dport 8080 -j ACCEPT 

2、第二步,保存修改  /etc/init.d/iptables save 

3、第三步,重启防火墙  service iptables restart

发布了16 篇原创文章 · 获赞 1 · 访问量 4938

猜你喜欢

转载自blog.csdn.net/JJJ1995/article/details/104524560