1. 程式人生 > >Tomcat出現端口占用錯誤

Tomcat出現端口占用錯誤

端口 localhost 修改 ever you 顯示錯誤 stop may this

Several ports (8005, 8080, 8009) required by Tomcat v8.5 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顯示錯誤,

技術分享圖片

這個錯誤顯示端口8005,8080,8009被占用,有兩種解決方案:

一、打開項目管理器,找到javaw.exe,點擊結束進程,再重啟就OK了。

技術分享圖片

二、找到安裝Tomcat的安裝目錄

apache-tomcat-8.5.37\conf底下的server.xml配置文件,修改如下端口號:

技術分享圖片

改為8015

技術分享圖片

改為8088

技術分享圖片

改為8019

Tomcat出現端口占用錯誤