dubbo报错qos-server...Address alre

2021-10-13  本文已影响0人  Yluozi

报错日志如下:

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端口冲突并影响服务消费者消费服务,但是每次程序启动总是抛出端口冲突异常

上一篇下一篇

猜你喜欢

热点阅读