Mac: sudo lsof -i tcp:port sudo kill -9 PID Windows: netstat -aon|findstr 8080 taskkill -f -pid 5956 亲测有用.