Error running Tomcat8: Address localhost:1099 is already in use(IDEA错误)

时间:2021-09-22 15:51:38

Error running Tomcat8: Address localhost:1099 is already in use(IDEA错误)

 有时候运行web项目的时候会遇到 Error running Tomcat8: Address localhost:1099 is already in use 的错误,导致web项目无法运行。

Error running Tomcat8: Address localhost:1099 is already in use(IDEA错误)

这明显是1099端口已经被占用,解决办法如下:

第一步,命令提示符号,执行命令:netstat –ano  或者   netstat -ano|findstr 1099

Error running Tomcat8: Address localhost:1099 is already in use(IDEA错误)

Error running Tomcat8: Address localhost:1099 is already in use(IDEA错误)

 

可见,占用1099端口的进程的PID是6368。

 

第二步,命令提示符号,执行命令:tasklist 

Error running Tomcat8: Address localhost:1099 is already in use(IDEA错误)

 Error running Tomcat8: Address localhost:1099 is already in use(IDEA错误)

可见,该占用1099端口的进程是java.exe


第三步,通过任务管理器->详细信息,终止进程java.exe

Error running Tomcat8: Address localhost:1099 is already in use(IDEA错误)

我们会看到开启了多个java.exe, 找到1099对应的进程给它结束掉。

第四步,重新启动tomcat,即可正常启动