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/

猜你喜欢

转载自blog.csdn.net/WtMaple/article/details/84026905