java - 运行时出错 'Tomcat' : Address localhost:1099 is already in use. 为什么?

标签 java tomcat intellij-idea

我收到此错误:运行“Tomcat”时出错:地址 localhost:1099 已在使用中

Intellj IDEA 的屏幕截图:

enter image description here

我试图通过查看人们在遇到与我类似的问题时发布的帖子来解决该问题,但我认为这与我的问题不同。

在我的情况下,不存在“使用 1099 端口的进程”。

当我输入netstat -aon | 时没有返回值在cmd上找到“1099”
我已经关闭了整个 IntelliJ 进程并重新启动了 PC。
我似乎根本没有使用端口 1099,但出现了类似的错误。

最佳答案

在tomcat的server.xml中将当前端口号更改为其他端口。

例如:将其更改为 1100。

<Connector port="1100" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />

重新启动服务器。

关于java - 运行时出错 'Tomcat' : Address localhost:1099 is already in use. 为什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60466736/

相关文章:

java - IntelliJ 和 Google Web 工具包

RIM 使用的 Java 版本

tomcat - 我无法在 JSF 2.2 的方法上传递参数

java - Jersey :请求资源不可用

intellij-idea - Intellij 包前缀由项目的 gradle refresh 重置

python - 如何配置 pycharm/intellij idea 来运行 tox 测试

java - 在 java 中直接从 URL 将文件 POST 到 REST api,而不写入磁盘

java - 我可以向 Combobox 的模型添加与 String 不同的值吗?

tomcat - 构建 Docker 镜像时使用主机的配置文件

python - 如何使用 Python 检测是否安装了 IntelliJ IDEA 或 PyCharm 并获取 Windows 上 exe 的路径?