首页 > 技术文章 > Tomcat问题

tangwu 2016-10-14 18:49 原文

问题: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的情况下,并且开启了服务器端口,导致端口的占用。使得项目无法占有端口,应当在开启软件的情况下,关闭服务器端口,再由项目里面的severs开启唯一端口,从而使得端口可以正常使用。

 

方法:

①测试tomcat工作是否正常运行,测试是否能打开http://localhost:8080,如果能打开说明tomcat正常工作;

②关闭tomcat,找到tomcat安装目录下startup.bat双击即关闭tomcat,若不能运行则占用未清理干净,打开任务管理器(win8:ctrl+shift+esc),关闭所有的java.exe和javaw.exe。

 

参考:http://stackoverflow.com/questions/5064733/several-ports-8005-8080-8009-required-by-tomcat-server-at-localhost-are-alre

推荐阅读