centos6 open port command

1, the first step, to modify the port number / sbin / iptables -I INPUT -p tcp --dport 8080 -j ACCEPT 

2. The second step, save the changes /etc/init.d/iptables save 

3. The third step is to restart the firewall service iptables restart

Published 16 original articles · won praise 1 · views 4938

Guess you like

Origin blog.csdn.net/JJJ1995/article/details/104524560