例如查找80端口進程:
1 查找根據端口查找pid: netstat -ano|findstr "80"
顯示: TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 3640
2 根據pid查找進程:tasklist|findstr "3640"
顯示:httpd.exe 3640 Console 0 5,108 K
如果要殺掉當前進程 使用 taskkill -pid 3640 /f
如果要殺掉當前進程 使用 taskkill -pid 3640 /f