场景:centeros启动tomcat后,在本地我window无法访问,经检查是防火墙未关闭,但整个关闭又感觉不好,于是想到只开放tomcat使用的8080 命令为: firewall-cmd --zone=public --add-port=8080/tcp --permanent