【Java】Web server failed to start. Port 80 was already in use.Identify and stop the process that‘s…

如果你不相信努力和时光,那么成果就会是第一个选择辜负你的。不要去否定你自己的过去,也不要用你的过去牵扯你现在的努力和对未来的展望。不是因为拥有希望你才去努力,而是去努力了,你才有可能看到希望的光芒。【Java】Web server failed to start. Port 80 was already in use.Identify and stop the process that‘s…,希望对大家有帮助,欢迎收藏,转发!站点地址:www.bmabk.com,来源:原文

  1. 问题描述
    Description
    Web server failed to start. Port 80 was already in use. Action
    Identify and stop the process that’s listening on port 80 or configure this application to listen on another port.
    Disconnected from the target VM, address: ‘127.0.0.1:63639’, transport: ‘socket’

    Process finished with exit code 1
    在这里插入图片描述

  2. 原因
    80 端口被占用

  3. 解决
    (1)Win + R 打开 “运行” 弹窗,输入cmd – “确定”
    在这里插入图片描述
    (2)查询指定端口(我这里是80)
    netstat -ano | findstr "指定端口"
    在这里插入图片描述
    (3)根据进程PID查询进程名称
    tasklist | findstr "进程PID号"
    在这里插入图片描述
    (4)根据PID杀死任务
    taskkill -f -t -im "进程名称"
    在这里插入图片描述

  4. 结果
    在这里插入图片描述

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

文章由极客之音整理,本文链接:https://www.bmabk.com/index.php/post/194982.html

(0)
飞熊的头像飞熊bm

相关推荐

发表回复

登录后才能评论
极客之音——专业性很强的中文编程技术网站,欢迎收藏到浏览器,订阅我们!