美文网首页
关于TomCat 8080端口占用问题

关于TomCat 8080端口占用问题

作者: Richair_Ann | 来源:发表于2017-08-04 13:40 被阅读64次

    1.场景描述

     Several ports (8080, 8009) required by Tomcat v6.0 Server at localhost are already in use.The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).
    
    image.png

    2.在dos下,输入 netstat -ano|findstr 8080 可以查看到被占用8080端口的进程

    image.png

    3.紧接着输入 taskkill /pid 你当前电脑被占用的进程 /f

      比如我的是 8832
      taskkill  /pid  8832  /f 
      回车如图
    
    image.png

    这时候再重新运行程序 就不会提示端口被占用

    相关文章

      网友评论

          本文标题:关于TomCat 8080端口占用问题

          本文链接:https://www.haomeiwen.com/subject/lzmvlxtx.html