1、报错信息:Address localhost:1099 is already in use
双引号注意
打开cmd
step1:通过端口找到PID
输入netstat -ano | find “1099”
step2:通过PID找到进程
输入:tasklist | find “9280” — (双引号里面的是PID)
step3:关闭进程
输入命令关闭进程:taskkill /f /t /im java.exe
2、解决本地端口占用问题
Description:
The Tomcat connector configured to listen on port 8080 failed to start. The port may already be in use or the connector may be misconfigured.
Action:
Verify the connector's configuration, identify and stop any process that's listening on port 8080, or configure this application to listen on another port.
对应的解决方式:
netstat -ano|findstr 8080
后面这个4188为端口pid,下面输入4188杀死即可
taskkill /f /t /im 4188