V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
NoKey
V2EX  ›  macOS

mbp 10.15 idea 运行 web 服务提示端口被占用

  •  
  •   NoKey · 2020-02-28 15:59:29 +08:00 · 1296 次点击
    这是一个创建于 1545 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我后悔啊,不该升 10.15 啊,各种问题啊。。。

    idea 之前都是好的

    今天运行 web 服务,提示端口占用

    Address localhost:20991 is already in use

    Unable to open debugger port (127.0.0.1:53112): java.net.SocketException "Socket closed"

    看,我已经把端口从 1099 改到 20991 了,都不行

    我查了端口,没有进程占用

    重启电脑也不行。。。

    求大佬救救。。。现在啥也干不了了

    2 条回复    2020-03-02 09:52:02 +08:00
    chendy
        1
    chendy  
       2020-02-28 17:17:20 +08:00
    lsof -i:20991 看看是哪个进程,确定没问题 kill 掉
    (感觉像是程序或者环境的问题启动了两次…
    NoKey
        2
    NoKey  
    OP
       2020-03-02 09:52:02 +08:00
    @chendy 找到问题了,不是系统问题,是我自己设置了 host 造成的。。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   4297 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 10:01 · PVG 18:01 · LAX 03:01 · JFK 06:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.