查看本机端口是否被占用:
netstat -ano | findstr "端口号"
找到该端口,看一下最后一列,是进程号pid
然后,
tasklist | findstr "pid"
如果要杀掉,taskkill /T /F /PID {pid}
其中,/T 是 tree kill/F 是强制杀