1. 程式人生 > >JAVA 解決tomcat佔用8080埠問題

JAVA 解決tomcat佔用8080埠問題

怎麼解決tomcat佔用8080埠問題,相信很多朋友都遇到過這樣的問題吧,tomcat宕機了,重啟eclipse之後,發現Several ports (8080, 8009) required by Tomcat v6.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).

是不是很多人教你重啟電腦呢,下面教大家一個不用重啟計算機 的方法。

此方法也可以解決,windows上如何結束程序的詳細過程,下面附詳細,圖文說明

  1. 在dos下,輸入  netstat   -ano|findstr  8080 

    //說明:檢視佔用8080埠的程序

    顯示佔用埠的程序

  2. taskkill  /pid  6856  /f 

    //說明,執行windows自帶taskkill命令,將上面顯示的程序號,結束掉。

    下面有圖為證