windows端口被占用解决方法
# 查询端口netstat -ano# 查询指定端口netstat -ano | findstr "端口号"# 根据进程PID查询进程名称tasklist | findstr "进程PID号"# 根据PID杀死任务taskkill -f -pid "进程PID号"# 根据进程名称杀死任务taskkill -f -t -im "进程名称"
如果80端口被系统占用(pid为4),则需要关闭http服务
# 查看 http 服务的运行状态netsh http show servicestate # 关闭使用上面命令中显示pid号代表的进程taskkill -f -pid "进程PID号"netsh http show servicestate #没有进程占用就ok了
如果觉得《windows端口被占用解决方法》对你有帮助,请点赞、收藏,并留下你的观点哦!