Posted on 2010-09-18 15:30
瘋狂 閱讀(764)
評論(0) 編輯 收藏 所屬分類:
java
例如查找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