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.  

目录
相关文章
|
23天前
network is not ready: runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady me
network is not ready: runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady me
21 1
|
25天前
error: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
error: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
13 0
|
9月前
|
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
1808 0
libvpx enabled but no supported decoders found
libvpx enabled but no supported decoders found
117 0
|
存储 NoSQL Redis
docker: denied: requested access to the resource is deniedunauthorized: authentication required
docker: denied: requested access to the resource is deniedunauthorized: authentication required
475 0
docker: denied: requested access to the resource is deniedunauthorized: authentication required
|
iOS开发 MacOS
curl: (4) A requested feature, protocol or option was not found
curl: (4) A requested feature, protocol or option was not found
213 0
curl: (4) A requested feature, protocol or option was not found
Required Remainder
Required Remainder
59 0
Required Remainder
how is Fiori launchpad host name and port number determined
Created by Wang, Jerry, last modified on Jul 16, 2015
79 0
how is Fiori launchpad host name and port number determined
nullable field verification in gateway backend
Created by Wang, Jerry, last modified on Jan 24, 2015
277 0
nullable field verification in gateway backend
how is Fiori launchpad host name and port number determine
Created by Wang, Jerry, last modified on Jul 16, 2015
117 0
how is Fiori launchpad host name and port number determine