0
0

More than 1 year has passed since last update.

Tomcat でよくある事象:Tomcat v9.9 Server at localhsot are already in use

Last updated at Posted at 2021-09-22

とってもよくある事象
eclipse / STS でのサーバ起動で、

Tomcat v9.9 Server at localhsot are already in use

Starting Tomcat at v9.0 Server at localhost has encountered a problem. Server ports(8005,8080) required at Tomcat v9.9 Server at localhsot are already in use

というのがよく発生する。

Linux なら tomcat プロセスを探して、そのままkill。
Windowsの場合、

Step1) プロンプトから以下のコマンド

netstat  -ano  |  findstr  <Port Number>

-- sample -----

C:\Users\tomoi>netstat  -ano  |  findstr  8080
  TCP         0.0.0.0:8080           0.0.0.0:0              LISTENING       9612
  TCP         [::]:8080              [::]:0                 LISTENING       9612

Step2) 以下の taskkill で kill する。

taskkill /F /PID < Process Id >

sample

taskkill  /F  /PID  9612
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0