windows cmd命令查看端口占用進程

netstat –ano|findstr [指定端口號]spa

 

經過任務管理器殺死相關的進程

方法一:使用任務管理器殺死進程
打開任務管理器->查看->選擇列->而後勾選PID選項,回到任務管理器上能夠查看到對應的pid,而後結束進程


方法二:使用命令殺死進程
1>首先找到進程號對應的進程名稱
tasklist|findstr [進程號];如:tasklist|findstr xxx

2>而後根據進程名稱殺死進程
taskkill /f /t /im [進程名稱];如:taskkill /f /t /im /xxx.exe

進程

相關文章
相關標籤/搜索