有时我们在启用tomcat时会报端口被占用情况 :
Several ports (8005, 8080, 8009) required by Tomcat v7.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).
首先我们打开cmd输入netstat -ano显示有哪些进程占用的端口情况,找到8080端口的PID码,
接下来我们看见占用8080端口的PID码为14600,接着打开进程管理服务,按照图片箭头操作,一定要点击PID码。
找到PID码为14600的进程服务,选择结束进程,然后tomcat就能重新启动了。