今天启动项目,突然报端口被占用
ERROR org.apache.catalina.util.LifecycleBase:175 - Failed to start component [Connector[HTTP/1.1-8088]]
org.apache.catalina.LifecycleException: Protocol handler start failed
Caused by: java.net.BindException: Address already in use: bind
Verify the connector's configuration, identify and stop any process that's listening on port 8088, or configure this application to listen on another port.
于是立马定位cmd,查找端口占用情况
1、netstat -ano|findstr 8088
**果然8088端口被占用 **
2、taskkill /f /t /im 2888
/im imagename 指定要终止的进程的映像名称。通配符 '*'可用来指定所有任务或映像名称。
/t 终止指定的进程和由它启用的子进程。
/f 指定强制终止进程。
后来想到之前没有关闭项目就退出的情况,实在是醉了