windows端口被占用
// 查询端口
netstat -ano
// 查询指定端口
netstat -ano | findstr "端口号"
// 根据进程PID查询进程名称
tasklist | findstr "进程PID号"
// 根据PID杀死任务
taskkill -f -pid "进程PID号"
// 根据进程名称杀死任务
taskkill -f -t -im "进程名称"
微信扫一扫
// 查询端口
netstat -ano
// 查询指定端口
netstat -ano | findstr "端口号"
// 根据进程PID查询进程名称
tasklist | findstr "进程PID号"
// 根据PID杀死任务
taskkill -f -pid "进程PID号"
// 根据进程名称杀死任务
taskkill -f -t -im "进程名称"
相关推荐