大家好,又见面了,我是你们的朋友全栈君。
1.查询端口
netstat -ano | findstr “123456”
TCP 127.0.0.1:1234 0.0.0.0:0 LISTENING 6789
2.查询端口名
tasklist | findstr “6789”
studio64.exe 6789 Console 3 1,385,024 K
3.关闭端口
taskkill /pid “6789” /F
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/162307.html原文链接:https://javaforall.cn