cmd相关操作命令

1.根据端口号查询对应进程的PID

netstat -ano | findstr 端口号

例如:netstat -ano | findstr 9080;该端口所属进程的PID为6684

2.根据PID查询对应进程

tasklist | findstr PID

例如:tasklist | findstr 6684;该PID所属进程名为idea64.exe

3.根据进程名(程序名)关闭应用程序

taskkill /f /t /im 程序名

例如:taskkill /f /t /im idea64.exe;关闭进程名为idea64.exe的应用程序

4.根据IP地址访问网络

ping IP地址

例如:ping 127.0.0.1

5.根据IP地址和端口检测端口是否被使用

telnet IP地址 端口号

例如:telnet127.0.0.1 8090

相关推荐
少妇的美梦2 天前
logstash教程
运维
chen9452 天前
k8s集群部署vector日志采集器
运维
chen9452 天前
aws ec2部署harbor,使用s3存储
运维
christine-rr2 天前
linux常用命令(4)——压缩命令
linux·服务器·redis
東雪蓮☆2 天前
深入理解 LVS-DR 模式与 Keepalived 高可用集群
linux·运维·服务器·lvs
qq_264220892 天前
LVS负载均衡群集和LVS+Keepalived群集
运维·负载均衡·lvs
乌萨奇也要立志学C++2 天前
【Linux】进程概念(二):进程查看与 fork 初探
linux·运维·服务器
雨落Liy2 天前
Nginx 从入门到进阶:反向代理、负载均衡与高性能实战指南
运维·nginx·负载均衡
Yyyy4822 天前
Nginx负载均衡集群实验步骤
运维·nginx·负载均衡
绿箭柠檬茶2 天前
Ubuntu 服务器配置转发网络访问
服务器·网络·ubuntu