とってもよくある事象
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