查看被占用端口对应的PID,输入命令:netstat -aon|findstr "对应的pid"
例如:查看端口号8085被占用,输入netstat -ano|findstr 8080
netstat -ano|findstr 8080
终止进程输入命令:taskkill /f /pid 12780
微信扫一扫
查看被占用端口对应的PID,输入命令:netstat -aon|findstr "对应的pid"
例如:查看端口号8085被占用,输入netstat -ano|findstr 8080
netstat -ano|findstr 8080
终止进程输入命令:taskkill /f /pid 12780
相关推荐