# 扫描并修复系统
sfc /SCANNOW
# 清理 arp 缓存
arp -d
# 根据 ip 查局域网 MAC 地址
ping ip
arp -a ip
# 查看端口占用情况
netstat -ano
# 查看指定端口占用情况
netstat -ano | findstr 80
# 根据 PID 查进程
tasklist |findstr 1352
# 根据 PID 杀进程
taskkill /f /pid 1352
# 创建 windows 服务[ 查看帮助 > sc create ]
sc create mysql binPath= D:\mysql_install\bin\mysqld.exe start= auto
# 查看服务状态
sc query mysql
# 启动服务
sc start mysql # net start mysql
# 停止服务
sc stop mysql # net stop mysql
# 删除服务
sc delete mysql
本文介绍了Windows系统中常见的命令行工具使用方法,包括系统扫描修复、网络配置管理、进程查询与控制及服务的创建、启动、停止和删除等操作。适合系统管理员和技术支持人员参考。
5万+

被折叠的 条评论
为什么被折叠?



