美文网首页
window命令行关闭本地占用的端口

window命令行关闭本地占用的端口

作者: 小棋子js | 来源:发表于2021-03-31 14:52 被阅读0次

端口被占用,解决办法如下:
1.查询端口
netstat -ano | findstr "8080"
TCP 127.0.0.1:8080 0.0.0.0:0 LISTENING 6789
2.查询端口名
tasklist | findstr "6789"
node.exe 6789 Console 3 1,385,024 K
3.关闭端口
taskkill /pid "6789" /F

相关文章

网友评论

      本文标题:window命令行关闭本地占用的端口

      本文链接:https://www.haomeiwen.com/subject/tgoohltx.html