# 扫描并修复系统
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