zoukankan      html  css  js  c++  java
  • Several ports (8005, 8080, 8009) required

    Several ports (8005, 8080, 8009) required by Tomcat v7.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).问题 

    Several ports (8005, 8080, 8009) required
     

    工具/原料

     
    • eclipse/myeclipse
    • tomcat

    方法/步骤

     
    1.  

      在开发java web项目中,我们往往会遇到很多问题,例如启动tomcat时,报错Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are already in use.参考下图报错提示:

      Several ports (8005, 8080, 8009) required
    2.  

      出现错误,我们首先的了解错误原因,英语能力较差者,可以通过百度搜索翻译,把错误的提示英文拿去翻译,参考下图。

      Several ports (8005, 8080, 8009) required
    3.  

      通过百度翻译,可以了解到大概信息,毕竟百度翻译这种技术型的文档还并不够准确。通过翻译,大致了解到造成的原因是端口号被占用了。

      Several ports (8005, 8080, 8009) required
    4.  

      tomcat控制端口,用于tomcat本身的功能控制等等,默认的是8005好像看你的server.xml配置文件,至少要修改这2个端口,如果用到了其他的附加组件,也需要提供相应空间的端口。参考下图

      Several ports (8005, 8080, 8009) required
    5.  

      另一种方式是结束"javaw.exe"这个进程,然后重新启动tomcat,具体查找参考下图。

      Several ports (8005, 8080, 8009) required
    6.  

      关闭"javaw.exe"这个进程,再次重启tomcat,你会发现并未再报错了。

      Several ports (8005, 8080, 8009) required
  • 相关阅读:
    iTerm2 颜色配置
    IOS_问题: Xcode8 安装KSImageName插件, 编代码就崩了
    IOS_设置启动图片若干问题
    Android 多国语言
    Reveal 配置与使用
    自定义代码块
    Android 动画
    SQL
    dialog
    2016-1-18UIlabel学习,正则表达式
  • 原文地址:https://www.cnblogs.com/keyi/p/7509025.html
Copyright © 2011-2022 走看看