windows下殺死端口進程
查看8080端口號占用情況 返回PID
netstat -ano|findstr "8000"
使用PID查看進程
tasklist|findstr "5558"
殺死進程
taskkill /f /t /im python.exe
linux下殺死進程查找占用程序
查看端口占用程序PID
netstat -apn | grep 8080
通過ps查看進程
ps -ef|grep nginx
殺死對應的進程
kill -9 25231
通過pkill殺死進程
pkill python