jsp在eclipse上运行

来源:百度知道 编辑:UC知道 时间:2024/05/31 03:04:30
Several ports (8005, 8080, 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).
为什么我JSP在ECLIPSE上运行时,,然后我想启动这个服务..可是它去说什么端口被占用..请问有什么可以解决的办法么??
可以告之一下如何解决的方法么.??最好可以把过程写出来好吗.谢谢各位前辈了..!!!急呀!!!

在tomcat的server.xml中修改
server.xml文件在你的tomcat的安装目录下的conf文件夹里,打开该文件后,搜索冲突的这几个端口(8005,8080,8009),替换成其他端口,如(8006,8081,8010),注意,其中的8080端口是你的服务端口,若替换成8081后,原来需访问http://localhost:8080/,修改后要访问http://localhost:8081