主机地址变更后,dubbo请求时依旧会寻址旧IP的问题

机房迁移,导致测试服务器IP变更,比原于IP为192.168.1.105变更为10.1.9.120。

 

服务源码未做任何变更,启动服务时依旧是旧地址请求,此问题由dubbo本地注册中心的缓存所致,清理掉即可。

 

位置一般在于/用户目录/.dubbo目录下面,不限于是win/linux/mac等三种系统。形如

 

[root@host2 .dubbo]# ll
总用量 8
-rw-r--r-- 1 root root 1613 4月  24 13:45 dubbo-registry-gps-data-serv-10.1.9.152:12181.cache
-rw-r--r-- 1 root root    0 4月  24 13:34 dubbo-registry-gps-data-serv-10.1.9.152:12181.cache.lock
-rw-r--r-- 1 root root 1573 4月  24 13:32 dubbo-registry-gps-serv-10.1.9.152:12181.cache
-rw-r--r-- 1 root root    0 4月  24 13:32 dubbo-registry-gps-serv-10.1.9.152:12181.cache.lock

 

posted @ 2018-04-24 13:57  maventalker  阅读(751)  评论(0编辑  收藏  举报