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

来源:互联网 发布:htc vive unity3d 编辑:程序博客网 时间:2024/06/07 20:58

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).

图示:

这里写图片描述


解决办法:

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

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

这里写图片描述

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

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

这里写图片描述

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

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

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

第二步: taskkill /pid 6856 /f

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

下面有图为证

这里写图片描述

阅读全文
0 0
原创粉丝点击