错误信息
Several ports (8005, 8080, 8009) required by Tomcat v5.5 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被占用了。究竟是谁占用的还不知道。
分析原因之后我们可以想到两个办法,把占用端口的进程杀掉,或者更改我们tomcat的端口号。
##分析1:找到被谁占用了
(1) 进入dos命令窗口,我们可以根据端口号查是程序的哪个进程在占用,使用命令:
netstat -ano |findstr 端口号
(2) 根据程序的进程号查看具体的程序名称:
tasklist|findstr 进程号