//在防火墙中打开8080端口
[root@localhost 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
//重启防火墙
[root@localhost bin]# systemctl restart firewalld.service
[root@localhost bin]#
[root@localhost bin]#
[root@localhost bin]#
个人主页:月下山川 - 千里之行 始于足下