Error running 'Tomcat 9.0.27': Address localhost:1099 is already in use

Error running ‘Tomcat 9.0.27’: Address localhost:1099 is already in use

在启动tomcat的时候报端口被占用的错误,导致web项目无法运行。解决办法如下:

1.cmd命令提示符号,执行命令:netstat -ano
可见,占用1099端口的进程的PID是10460。Error running 'Tomcat 9.0.27': Address localhost:1099 is already in use_第1张图片
可见,占用1099端口的进程的PID是12888。

2.命令提示符号,执行命令:tasklist
Error running 'Tomcat 9.0.27': Address localhost:1099 is already in use_第2张图片
可见,该占用8080端口的进程是Java.exe
不过绝大部分占用的都是java.exe

3.通过任务管理器,终止进程java.exe
Error running 'Tomcat 9.0.27': Address localhost:1099 is already in use_第3张图片
4.重新启动tomca/或者重新打开一个工程,即可正常启动

你可能感兴趣的:(Error running 'Tomcat 9.0.27': Address localhost:1099 is already in use)