查看被占用端口对应的PID,输入命令:netstat -aon|findstr "对应的pid"

例如:查看端口号8085被占用,输入netstat -ano|findstr 8080

netstat -ano|findstr 8080

windows下查看端口号被占用命令_端口号

终止进程输入命令:taskkill /f /pid 12780