After the host address is changed, the dubbo request will still address the old IP

The migration of the computer room resulted in the change of the test server IP from 192.168.1.105 to 10.1.9.120.

 

The service source code has not been changed, and the old address is still requested when the service is started. This problem is caused by the cache of the local registry of dubbo, and it can be cleaned up.

 

The location is generally under the /user directory/.dubbo directory, not limited to three systems such as win/linux/mac. Shaped like

 

[root@host2 .dubbo]# ll
Total usage 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

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326011261&siteId=291194637