Several ports (8005, 8080) required by Tomcat v8.5 Server at localhost are already in use.端口号被占用解决方案

问题描述:

启动Tomcat服务器时报错,提示端口被占用

Several ports (8005, 8080) required by Tomcat v8.5 Server at localhost
are already in use.

原因分析:

端口被占用


解决方案:

打开cmd窗口,执行命令: netstat -ano | findStr 8080
记住最后的数字

Several ports (8005, 8080) required by Tomcat v8.5 Server at localhost are already in use.端口号被占用解决方案_第1张图片

方案1-则打开任务管理器,找到对应数字进程,结束"javaw.exe"这个进程,就没问题了。

Several ports (8005, 8080) required by Tomcat v8.5 Server at localhost are already in use.端口号被占用解决方案_第2张图片

方案2-找到正在运行的服务然后找到进程id并复制pid并cmd窗口再次运行命令
taskkill /F /PID pid_number

方案3-找到tomcat的目录,在bin文件夹里面找到shutdown.bat执行一下,再去eclipse里面启动tomcat就成功了!

你可能感兴趣的:(Java,eclipse,tomcat)