早教吧 育儿知识 作业答案 考试题库 百科 知识分享

使用Eclipse启动Tomcat6时出现'StartingTomcatv6.0Serveratlocalhost'hasencounteredaproblem.Severalports(8005,8009)requiredbyTomcatv6.0Serveratlocalhostarealreadyinuse.Theservermayalreadyberunninginanotherprocess,

题目详情
使用Eclipse启动Tomcat6时出现 'Starting Tomcat v6.0 Server at localhost' has encountered a problem.
Several ports (8005, 8009) required by Tomcat v6.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).
▼优质解答
答案和解析
本机的端口8005,8009已经被其他程序占用。
先看一下你的tomcat是否已经启动。通过windows的任务管理器看看是否java进程。eclipse会启一个javaw的进程,tomcat会启java进程。杀掉java进程再试一下。
再看一下是否有其他程序占用这个端口。是否启过php的服务器。可能会有端口冲突。