Tomcat启动,但无法访问localhost:8080
Tofloor
poster avatar
orangeshine
deepin
2019-07-02 04:49
Author
PATH都检查过没有问题
端口号业务问题,更改之后也是无法访问

大佬们求问这是啥原因
Reply Favorite View the author
All Replies
avatar
走钢丝
deepin
2019-07-02 05:10
#1
本帖最后由 lidanger 于 2019-7-1 21:14 编辑

看看端口监听情况和防火墙规则

netstat -anp | grep xxx
ufw status
Reply View the author
avatar
random0901
deepin
2019-07-02 05:19
#2
那就不要用localhost,用127.0.0.1:8080试试看
Reply View the author
avatar
魔法师
deepin
2019-07-02 05:19
#3
catalina.sh run 直接看日志,lsof -i :8080看看端口情况(sudo apt install lsof)
Reply View the author
avatar
魔法师
deepin
2019-07-02 05:19
#4
lidanger 发表于 2019-7-1 21:10
看看端口监听情况和防火墙规则

netstat -anp | grep xxx

这deepin有防火墙吗,不是没有开吗
Reply View the author
avatar
魔法师
deepin
2019-07-02 05:21
#5
random0901 发表于 2019-7-1 21:19
那就不要用localhost,用127.0.0.1:8080试试看

怎么不用localhost,在/etc/hosts文件内系统默认定义了localhost 值
Reply View the author
avatar
random0901
deepin
2019-07-02 07:57
#6
https://bbs.deepin.org/post/180108
怎么不用localhost,在/etc/hosts文件内系统默认定义了localhost 值

你试试看
Reply View the author
avatar
orangeshine
deepin
2019-07-02 17:22
#7
https://bbs.deepin.org/post/180108
那就不要用localhost,用127.0.0.1:8080试试看

127也试过了,一样无法访问
Reply View the author
avatar
魔法师
deepin
2019-07-02 20:16
#8
还有就是,tomcat有时候启动异常慢
Reply View the author