1. 查看tomcat是否启动
ps -ef | grep tomcat
2.查看端口是否开启
netstat -anp | grep 8080
lsof -i :8080
如果没有,请添加安全组。
3.如果添加了安全组,还是不能访问,那大概率就是防火墙没关闭了。
可能是Linux的防火墙没有关闭导致的访问超时
使用命令把防火墙给关闭了
暂时关闭防火墙
systemctl stop firewalld
永久关闭防火墙
systemctl disable firewalld
重启防火墙
systemctl enable firewalld