IntelliJ IDEA - 地址 localhost:1099 已被使用 [英] IntelliJ IDEA - Address localhost:1099 is already in use

查看:252
本文介绍了IntelliJ IDEA - 地址 localhost:1099 已被使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用 IntelliJ IDEA 启动 Web 应用程序,但出现错误:localhost:1099 already in use.

I try to launch a web application with IntelliJ IDEA, but I get an error: localhost:1099 already in use.

我使用 lsof -i:1099 和许多其他相关命令检查了端口 1099,所以我很确定端口 1099 是空闲的.

I checked the port 1099 with lsof -i:1099 and many other relative commands, so I'm pretty sure the port 1099 is free.

这是我的运行配置:

我还将 JMX 端口 更改为 6666 &6667 &6668...它不起作用,所以我认为它与端口本身并没有真正的关系.

I've also changed the JMX port to 6666 & 6667 & 6668... and it doesn't work, so I think it's not really related to the port itself.

我很困惑……其他人有这个问题吗?

I am so confused... did anyone else have this problem?

感谢任何帮助

推荐答案

因为使用命令提示符很容易解决.您可以执行以下操作.我假设您在 Windows 上工作.

Since it is easy to tackle with Command Prompt. You can do the following. I assume you work on Windows.

打开 CMD 并输入以下内容.

Open the CMD and type following.

netstat -aon | find "1099"

如果进程使用上述端口,它应该返回这样的输出.

If a process uses above port, it should return something output like this.

TCP    xxx.xx.xx.xx:1099      xx.xx.xx.xxx:443      ESTABLISHED     2222

最后一列值 (2222) 指的是进程 ID (PID).

The last column value (2222) is referred to the Process ID (PID).

只需按如下方式杀死即可.

taskkill /F /PID 2222

现在您可以启动服务器了.

Now you can start your server.

这篇关于IntelliJ IDEA - 地址 localhost:1099 已被使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆