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.

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
  7.  

目录
相关文章
|
2月前
|
JSON 前端开发 Java
template might not exist or might not be accessible by any of the configured Template Resolvers
template might not exist or might not be accessible by any of the configured Template Resolvers
38 0
|
6月前
error: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
error: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
105 0
成功解决hostname ‘xxx‘ doesn‘t uniquely match the interface ‘ens33‘ selected for the management bridge
成功解决hostname ‘xxx‘ doesn‘t uniquely match the interface ‘ens33‘ selected for the management bridge
|
Docker 容器
docker报错ERROR: for hass “host” network_mode is incompatible with port_bindings
docker报错ERROR: for hass “host” network_mode is incompatible with port_bindings
2683 0
|
Linux
ERROR: 2 matches found based on name: network product-server_default is ambiguous
ERROR: 2 matches found based on name: network product-server_default is ambiguous
156 0
libvpx enabled but no supported decoders found
libvpx enabled but no supported decoders found
179 0
|
iOS开发 MacOS
curl: (4) A requested feature, protocol or option was not found
curl: (4) A requested feature, protocol or option was not found
269 0
curl: (4) A requested feature, protocol or option was not found
how is Fiori launchpad host name and port number determined
how is Fiori launchpad host name and port number determined
130 0
how is Fiori launchpad host name and port number determined
how is Fiori launchpad host name and port number determine
Created by Wang, Jerry, last modified on Jul 16, 2015
139 0
how is Fiori launchpad host name and port number determine
Error saving your changes: Description control characters are not allowed
在修改 GitHub 上的仓库描述时出现此提示信息:Error saving your changes: Description control characters are not allowed 开始以为是 Fork 来的没有修改权限,但之前没有遇到这样的情况,提示信息说的也不是这个意思。
2381 0