20211110_Window窗口查看所有进程、杀死进程、根据端口查找进程

1、Window下cmd窗口查看所有进程:tasklist

命令:tasklist
C:\Users\Administrator>tasklist

映像名称                       PID 会话名              会话#       内存使用
========================= ======== ================ =========== ============
System Idle Process              0 Services                   0          8 K
System                           4 Services                   0         36 K
Registry                       124 Services                   0     46,080 K
smss.exe                       432 Services                   0      1,008 K
csrss.exe                      700 Services                   0      5,076 K
wininit.exe                    872 Services                   0      5,996 K
csrss.exe                      884 Console                    1      7,188 K
services.exe                   948 Services                   0      9,224 K
lsass.exe                      968 Services                   0     20,144 K
svchost.exe                    756 Services                   0     30,732 K
winlogon.exe                   768 Console                    1     11,572 K
fontdrvhost.exe                980 Services                   0      2,428 K
WUDFHost.exe                  1048 Services                   0     15,056 K
fontdrvhost.exe               1076 Console                    1     31,864 K
svchost.exe                   1140 Services                   0     18,452 K
svchost.exe                   1196 Services                   0     10,040 K
dwm.exe                       1300 Console                    1    139,972 K
svchost.exe                   1392 Services                   0     10,516 K
svchost.exe                   1464 Services                   0      6,660 K
svchost.exe                   1480 Services                   0      9,740 K
svchost.exe                   1492 Services                   0     10,896 K

 2、Window下cmd窗口根据端口查看找进程

命令:
netstat -ano | find "端口号"
netstat -ano | findstr 端口号
区别:find端口号需要是字符串,findstr后面可以直接跟端口号,也可以跟字符串
C:\Users\Administrator>netstat -ano | find "8068"
  TCP    0.0.0.0:8068           0.0.0.0:0              LISTENING       24036
  TCP    [::]:8068              [::]:0                 LISTENING       24036

C:\Users\Administrator>netstat -ano | find 8068
FIND: 参数格式不正确
C:\Users\Administrator>netstat -ano | findstr 8068
  TCP    0.0.0.0:8068           0.0.0.0:0              LISTENING       24036
  TCP    [::]:8068              [::]:0                 LISTENING       24036

C:\Users\Administrator>netstat -ano | findstr "8068"
  TCP    0.0.0.0:8068           0.0.0.0:0              LISTENING       24036
  TCP    [::]:8068              [::]:0                 LISTENING       24036

 3、Window下cmd窗口杀死进程

taskkill -pid 进程号 直接杀死
taskkill -pid 进程号 -t -f 强制杀死进程
taskkill -f -t -im java.ex 根据进程名称强制杀死进程

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值