因为防火墙没有关闭,导致本地无法访问tomcat首页。 输入service iptable restart命令无效,因为安装的CentOS系统不支持该命令 输入systemctl stop iptables.service即可