美文网首页
dubbo报错qos-server...Address alre

dubbo报错qos-server...Address alre

作者: Yluozi | 来源:发表于2021-10-13 09:59 被阅读0次

    报错日志如下:

    2021-10-12 15:12:46.796 ERROR 20272 --- [ost-startStop-1] com.alibaba.dubbo.qos.server.Server      102  :  [DUBBO] qos-server can not bind localhost:22201, dubbo version: 2.6.2, current host: 10.1.1.173
    
    java.net.BindException: Address already in use
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Net.java:433)
        at sun.nio.ch.Net.bind(Net.java:425)
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
        at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:128)
        at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:558)
        at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1358)
        at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:501)
        at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:486)
        at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:1019)
    

    问题原因是多个服务在该服务器内运行,两个服务的qos-server配置端口号一致,启动时提示被占用,修改其一端口号并重启。

    dubbo:
      ## ApplicationConfig Bean
      application:
        id: invoice-c-listen
        name: invoice-c-listen
        qos-port: 22201
        qos-enable: true
    

    qos是dubbo的在线运维命令,dubbo2.5.8新版本重构了telnet模块,提供了新的telnet命令支持,新版本的telnet端口与dubbo协议的端口是不同的端口,默认为22222。
    qos端口冲突并影响服务消费者消费服务,但是每次程序启动总是抛出端口冲突异常

    相关文章

      网友评论

          本文标题:dubbo报错qos-server...Address alre

          本文链接:https://www.haomeiwen.com/subject/ypysoltx.html