linux open port 8080

LINUX can open network ports that allow external access through the following commands: 

/sbin/iptables -I INPUT -p tcp --dport 8000 -j ACCEPT #Open port 8000 

/etc/rc.d/init.d/iptables save #Save Configure 

/etc/rc.d/init.d/iptables restart #Restart the service 

to see if the port is open 

/etc/init.d/iptables status

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326397703&siteId=291194637