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).问题
工具/原料
1
eclipse/myeclipse
2
tomcat
方法/步骤
1
在开发java web项目中,我们往往会遇到很多问题,例如启动tomcat时,报错Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are already in use.参考下图报错提示:
4
tomcat控制端口,用于tomcat本身的功能控制等等,默认的是8005好像看你的server.xml配置文件,至少要修改这2个端口,如果用到了其他的附加组件,也需要提供相应空间的端口。参考下图
5
另一种方式是结束'javaw.exe'这个进程,然后重新启动tomcat,具体查找参考下图。
6
关闭'javaw.exe'这个进程,再次重启tomcat,你会发现并未再报错了。
注意事项
谢谢阅读!
上一篇:Tomcat如何部署多个项目