1. 程式人生 > >Starting Tomcat v7.0 Server at localhost' has encountered a problem問題的解決

Starting Tomcat v7.0 Server at localhost' has encountered a problem問題的解決

錯誤提示:

Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are 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時預設配置埠被佔用,引起衝突

解決方法:

1.關閉佔用埠的程序

                   步驟:①在cmd內查詢所有埠以及被佔用情況

                              ②開啟工作管理員關閉即可

2.修改Tomcat預設埠號

更改server.xml檔案內的預設埠號

3.重新啟動Tomcat執行Web專案即可