配置不好是什么问题?
Access Error: 404 -- Not Found
Cannot locate document: /
Cannot locate document: /
2018-08-03
原因是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博主「故乡的风景」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/WtMaple/article/details/84026905
举报