錯誤信息:
Port 8080 required by Tomcat v8.0 Server at localhost is already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).
解決辦法:
今天使用tomcat,進行web項目基礎學習,運行web項目的時候會遇到 Error running Tomcat8: Address localhost:8080 is already in use 的錯誤,導致web項目無法運行。這明顯是8080端口已經被占用,解決辦法如下:
1.第一步,win+R打開window窗口,輸入命令提示符號,執行命令:netstat -ano
可見,占用8080端口的進程的PID是47676。
2.第二步,執行命令:tasklist
從上圖可以看出,占用端口的是javaw.exe
3.第三步,通過任務管理器,終止進程javaw.exe
通過快捷鍵ctrl+Alt+del或者ctrl+shift+esc打開任務管理器,找到javaw.exe,然后終止進程
4.重新啟動tomcat,即可正常啟動。
【文章轉載自:https://blog.csdn.net/qq_43560721/article/details/88900528】