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.  

目录
相关文章
|
3月前
|
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
89 0
|
7月前
error: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
error: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
158 0
|
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
2774 0
|
开发工具 Docker 容器
Docker之WARNING: IPv4 forwarding is disabled. Networking will not work.
Docker之WARNING: IPv4 forwarding is disabled. Networking will not work.
184 0
Docker之WARNING: IPv4 forwarding is disabled. Networking will not work.
|
Kubernetes 容器
no matches for kind “Deployment“ in version “extensions/v1beta1“
no matches for kind “Deployment“ in version “extensions/v1beta1“
libvpx enabled but no supported decoders found
libvpx enabled but no supported decoders found
194 0
|
数据安全/隐私保护
remote: Support for password authentication was removed on August 13, 2021
remote: Support for password authentication was removed on August 13, 2021
241 0
Required Remainder
Required Remainder
107 0
Required Remainder
|
应用服务中间件 nginx
启动nginx报错,80 failed (97: Address family not supported by protocol)
启动nginx报错,80 failed (97: Address family not supported by protocol)
399 0
启动nginx报错,80 failed (97: Address family not supported by protocol)