Tomcat(8005,8080,8009)端口占用问题常见原因及解决方法

今天在MyEclipse中,在已经启动了Tomcat服务器后,准备运行页面时,有时会出现这样的关于Tomcat服务器端口占用问题Several ports (8005, 8080, 8009) required by Tomcat v9.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).

原因:(8005,8080,8009)三个端口中的至少一个被其他程序占用

在cmd控制台里用“netstat -ano”命令查看正在运行的程序所占用的端口以及相关信息:

Tomcat(8005,8080,8009)端口占用问题常见原因及解决方法_第1张图片

可以看到8005,8009,8080都被pid为10436的程序占用,只要打开任务管理器-->详细信息-->pid,,把‘javax.exe’这个程序结束即可。





你可能感兴趣的:(Exception)