错误问题:Several ports (8005, 8080, 8009) required by Tomcat v7.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).
解决一:
打开任务管理器,看有没有javaw.exe,找到并解决掉他。如果没有,可以win+R进入cmd,输入
netstat -ano | findstr 8080 或 netstat -ano 查看占用端口的进程pid,去任务管理器找
或用命令
taskkill -pid 进程pid -f 杀死进程,重启tomcat
解决二:
修改Tomcat的配置文件。
例如:D:\apache-tomcat-7.0.50\conf\server.xml
<Connector port="8080" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
Connector 节点,将port="8080"中的端口改为一个没有被占用的端口。