JavaWeb项目运行在tomcat报错
当新建的web项目,运行到Tomcat报错如下:
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服务器,在进程里面看看是否有这个:
因为tomcat已经运行了,所以会占用8080端口,于是会报上面的错误。
如果不是这个原因,则坚持是不是有javaw.exe这个进程,如果有请删除