美文网首页
dubbo报错com.alibaba.dubbo.remotin

dubbo报错com.alibaba.dubbo.remotin

作者: 就没一个昵称能用 | 来源:发表于2017-09-12 11:33 被阅读0次

    问题场景

    最近阿里云上的ESC实例需要进行迁移,服务器重启后,将软件都重启发现服务注册不上,看日志报错

    Caused by: com.alibaba.dubbo.remoting.RemotingException: message can not send, because channel is closed
    ···
    

    解决方法

    ESC实例迁移过程中,内网ip发生了变化,在dubbo的配置文件中,注册中心的地址填写的是127.0.0.1

    <dubbo:registry protocol="zookeeper" address="127.0.0.1:2181">
    

    修改hosts文件,将主机名对应的ip地址进行更改,然后重启服务即可

    vi /etc/hosts
    127.0.0.1 localhost
    ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
    #修改主机名对应的ip
    xx.xxx.xxx.xxx waptest
    

    相关文章

      网友评论

          本文标题:dubbo报错com.alibaba.dubbo.remotin

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