mac to view port occupancy:
lsof -i tcp:7000
Kill the process on the current port:
kill 44934 //这里的44934为PID
Windows checks the port occupancy:
netstat -ano
Find the PID of a port:
netstat -ano|findstr '7000'
Kill the current port process:
taskkill /T /F /PID 8784(端口对应的PID)