Tomcat端口(8005,8009,8080)被占用:starting Tomcat8.0 server at localhost has encountered a problem

8005,8009,8080端口被占用问题:

starting Tomcat8.0 server at localhost has encountered a problem!

Several ports (8005, 8080, 8009) required by Tomcat v8.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).

图示:

Tomcat端口(8005,8009,8080)被占用:starting Tomcat8.0 server at localhost has encountered a problem_第1张图片


解决办法:

1)方法一:查看被占用端口

可以在控制台里用“netstat -abn”命令查看端口的使用情况:

Tomcat端口(8005,8009,8080)被占用:starting Tomcat8.0 server at localhost has encountered a problem_第2张图片

这里我们可以看到端口被mysql.exe和javaw.exe占用了。

一般我们在任务管理器中的进程中禁用javaw.exe就可以了.

Tomcat端口(8005,8009,8080)被占用:starting Tomcat8.0 server at localhost has encountered a problem_第3张图片

2)方式二:查看指定端口号被使用的情况

第一步:在dos下,输入 netstat -ano|findstr 8080

//说明:查看占用8080端口的进程

显示占用端口的进程

第二步: taskkill /pid 6856 /f

//说明,运行windows自带taskkill命令,将上面显示的进程号,结束掉。

下面有图为证

Tomcat端口(8005,8009,8080)被占用:starting Tomcat8.0 server at localhost has encountered a problem_第4张图片

你可能感兴趣的:(Tool工具,Javaweb)