The Tomcat connector configured to listen on port 18081 failed to start. The port may already be in

简介: The Tomcat connector configured to listen on port 18081 failed to start. The port may already be in

前言:

在应用程序开发过程中,启动失败是比较常见的问题。其中一个常见的原因就是端口被占用或者连接器配置有误。本文将介绍如何解决 Tomcat 连接器在监听端口 18081 时启动失败的问题。

摘要:

本文介绍了 Tomcat 连接器启动失败的解决方法,主要包括检查连接器的配置、查找并停止在 18081 端口上监听的进程以及将应用程序配置为在其他端口上进行监听。其中,我们可以使用 netstat 命令查看当前系统中哪些进程正在监听 18081 端口,以便更好地进行调整。通过本文的介绍,读者可以更好地解决应用程序启动失败的问题,提高开发效率。

在开发的过程当中,软件直接崩掉了;我重新打开之后启动服务的时候就报下面的错误;

***************************
APPLICATION FAILED TO START
***************************
Description:
The Tomcat connector configured to listen on port 18081 failed to start. The port may already be in use or the connector may be misconfigured.
Action:
Verify the connector's configuration, identify and stop any process that's listening on port 18081, or configure this application to listen on another port.

这是一个应用程序启动失败的错误提示。提示信息显示 Tomcat 连接器配置监听端口 18081 失败,可能是端口已经被占用或者连接器配置有误。解决方法是检查连接器的配置,查找并停止在 18081 端口上监听的进程,或者将应用程序配置为在其他端口上进行监听。您可以尝试使用 netstat 命令查看当前系统中哪些进程正在监听 18081 端口,然后根据情况进行调整。

1.大家可以选择换一个端口;

更换端口之后,之前的被占用咱们也可以不去处理;

2.重启电脑;

重启之后断后就不会被占用了;相当于重新刷了下配置;

3.windows杀端口

win+R 输入cmd 打开 windows 程序命令输入框

在dos窗口中输入指令:netstat -ano | findstr 18081,其中1808118081是指你被占用的端口号,然后会显示出现在占用该端口号的pid。

输入 taskkill /f /pid 8676,关闭该进程即可

最后输入 netstat -ano | findstr 18081 查看端口是否被杀死;

netstat -ano | findstr 18081   #查看端口对应的pid,方便后面进行杀死
taskkill /f /pid 8676          #杀死pid为8786的端口

相关文章
|
6月前
|
应用服务中间件
The Tomcat connector configured to listen on port 10000 failed to start. The port may already be in
The Tomcat connector configured to listen on port 10000 failed to start. The port may already be in
|
6月前
|
应用服务中间件
IDEA启动报错:Error running ‘Tomcat 8.5.34‘: Address localhost:1099 is already in use
IDEA启动报错:Error running ‘Tomcat 8.5.34‘: Address localhost:1099 is already in use
47 0
|
10月前
|
人工智能 监控 Java
IDEA启动tomcat 端口1099被占用(1099 is already in use)
IDEA启动tomcat 端口1099被占用(1099 is already in use)
IDEA启动tomcat 端口1099被占用(1099 is already in use)
|
XML 应用服务中间件 Android开发
Eclipse出现Tomcat无法启动:Server Tomcat v8.5 Server at localhost failed to start问题
Eclipse出现Tomcat无法启动:Server Tomcat v8.5 Server at localhost failed to start问题
346 0
Eclipse出现Tomcat无法启动:Server Tomcat v8.5 Server at localhost failed to start问题
|
Java 应用服务中间件 Maven
Tomcat SEVERE: Failed to initialize end point associated with ProtocolHandler [“http-bio-8080“] 异常处理
Tomcat SEVERE: Failed to initialize end point associated with ProtocolHandler [“http-bio-8080“] 异常处理
542 0
Tomcat SEVERE: Failed to initialize end point associated with ProtocolHandler [“http-bio-8080“] 异常处理
|
应用服务中间件
The Tomcat connector configured to listen on port 8200 failed to start.【异常详情处理】
The Tomcat connector configured to listen on port 8200 failed to start.【异常详情处理】
174 0
The Tomcat connector configured to listen on port 8200 failed to start.【异常详情处理】
|
缓存 Java 应用服务中间件
Java网络编程与NIO详解11:Tomcat中的Connector源码分析(NIO)
Tomcat 中的 NIO 源码分析 转自https://www.javadoop.com/post/tomcat-nio#toc1 之前写了两篇关于 NIO 的文章,第一篇介绍了 NIO 的 Channel、Buffer、Selector 使用,第二篇介绍了非阻塞 IO 和异步 IO,并展示了简单的用例。
|
17天前
|
XML Java 应用服务中间件
Tomcat_servlet部署、编译、配置、打包
Tomcat_servlet部署、编译、配置、打包
21 0
|
1月前
|
运维 Java 应用服务中间件
Tomcat详解(二)——tomcat安装与配置
Tomcat详解(二)——tomcat安装与配置
21 1
|
3天前
|
IDE Java 应用服务中间件
JDK1.6.0+Tomcat6.0的安装配置(配置JAVA环境)
JDK1.6.0+Tomcat6.0的安装配置(配置JAVA环境)
14 1