问题:Error was Port already in use: 40001
1. netstat -ano|findstr "40001"
TCP 127.0.0.1:14043 127.0.0.1:40001 CLOSE_WAIT 12644 TCP 127.0.0.1:40001 0.0.0.0:0 LISTENING 15400 TCP 127.0.0.1:40001 127.0.0.1:14043 FIN_WAIT_2 15400
2. tasklist |findstr "15400"
Dict.exe 15400 Console 2 43,316 K
把dict.exe关掉就OK了。
本文介绍了如何通过netstat和tasklist命令找到占用特定端口(例如40001)的进程,并给出了关闭对应进程(如dict.exe)的具体步骤。

3751

被折叠的 条评论
为什么被折叠?



