1. 程式人生 > >linux下開放8080埠

linux下開放8080埠

//在防火牆中開啟8080埠

[[email protected] bin]# firewall-cmd –zone=public –add-port=8080/tcp –permanent

或:    iptables -I INPUT -p tcp --dport 8080 -j ACCEPT

usage: see firewall-cmd man page

l-cmd: error: unrecognized arguments: –zone=public –add-port=8080/tcp –permanent

//重啟防火牆

[[email protected] bin]# systemctl restart firewalld.service

[[email protected] bin]#

[[email protected] bin]#

[[email protected] bin]#