Several ports (8080, 8080) 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)
这是由于其他程序已经占用了8080端口,而tomcat的默认端口是8080,在用eclipse时候8080已经被占用就会报此错误。解决方法修改tomcat默认端口或者将占用8080端口的程序终止掉。
在这里提供后者解决方法:
第一步,在cmd命令行中输入netstat -ano
找到占用8080端口程序的PID号
第二步,输入指令tasklist
根据找到的PID号码,找到占用8080端口的程序名
第三部,在任务管理器进程中,终端此程序。