windows查看端口占用情况
1.比如我想看那个进程占用了18165端口
netstat -ano|findstr "18165"
结果为30448
2.然后使用30448为参数查看是那个程序占用了该端口:
tasklist|findstr "30448"
3.最后如需关闭进程,使用命令结束改进程
taskkill /f /t /im firefox.exe
杀掉对应名称的进程
windows查看端口占用情况
1.比如我想看那个进程占用了18165端口
netstat -ano|findstr "18165"
结果为30448
2.然后使用30448为参数查看是那个程序占用了该端口:
tasklist|findstr "30448"
3.最后如需关闭进程,使用命令结束改进程
taskkill /f /t /im firefox.exe
杀掉对应名称的进程