window查看端口号对应的进程号

来源:互联网 发布:nginx过滤ip 编辑:程序博客网 时间:2024/05/27 06:51

1、查看端口号对应的进程号

netstat ano | findstr 端口号

如  netstat ano | findstr 5672

2、根据进程号进一步查看所运行的程序

tasklist | findstr 进程号

如  tasklist | findstr 13712

3、杀死进程

方式一:

根据进程号杀

taskkill  /f  /pid 进程号

如 taskkill /f  /pid  13712

方式二:

根据进程名杀

taskkill  /f /t /im 进程名

如 taskkill  /f /t /im erl.exe

原创粉丝点击