sun博客

记录点滴!

已知3000端口被使用,需要杀掉占用这个端口的程序。

netstat -ano|findstr 3000
  TCP    0.0.0.0:3000           0.0.0.0:0              LISTENING       14768
  TCP    [::]:3000              [::]:0                 LISTENING       14768

查到pid 14768

C:\Users\86153>tasklist | findstr 11008
node.exe                     11008 Console                    1     71,160 K

是node 占用了这个进程

#taskkill /pid 11008 -t -f
C:\Users\86153>taskkill /pid 11008
成功: 给进程发送了终止信号,进程的 PID 为 11008。

完成

发表评论

邮箱地址不会被公开。 必填项已用*标注