tomcat 错误:Access Error: 404 -- Not Found Cannot locate document: /

原因是8080端口被占用(可能是其他软件,比如NI公司软件,电子专业童鞋一般都装有这类软件)

解决方法1:

When I had an error Access Error: 404 -- Not Found I fixed it by doing the following:

Open command prompt and type "netstat -aon" (without the quotes)
Search for port 8080 and look at its PID number/code.
Open Task Manager (CTRL+ALT+DELETE), go to Services tab, and find the service with the exact PID number. Then right click it and stop the process.

由于我没有在netstat -aon中找到8080 port,所以选择方法2:

解决方法2:

记事本打开tomcat安装文件的conf中server.xml,将

<Connector port="8080" protocol="HTTP/1.1"               connectionTimeout="20000"               redirectPort="8443" />

中的8080改为8081,保存,重新启动bin目录下shutdown 然后statup,在地址栏输入http://localhost:8081/
--------------------- 

转发自:
作者:故乡的风景 
来源:CSDN 
原文:https://blog.csdn.net/WtMaple/article/details/84026905
 

评论 8
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值