查询端口占用并关闭程序

参考博客

查询端口

# 语法格式:
# netstat -ano | findstr :端口号

关闭进程

# 语法格式
# taskkill /F /PID 你的PID

示例