netstat -ano | find “端口号” taskkill -f /pid 12568 C:\Users\huwq>netstat -ano | find "9031" TCP 0.0.0.0:9031 0.0.0.0:0 LISTENING 12568 TCP [::]:9031 [::]:0 LISTENING 12568 C:\Users\huwq>taskkill -f /pid 12568