can not register RM,err:can not connect to services-server

问题出现原因,我是把seata的服务在windows子系统UBUNTU上运行才出现这个问题,在windows 上没有这个问题。

我这个问题的主要是原因是微服务找不到seata服务器的地址,无法注册上去

如果你的spring boot 设置和服务器不匹配也不行的,gourp  和 tx-service 都需要匹配

我这个问题的解决方法 修改seata-server.sh文件,

host=`ifconfig -a|grep inet|grep 255.255.240.0|grep -v inet6|awk '{print $2}'|tr -d "addr:"`
上面获取方式可以更改

原文地址:https://www.cnblogs.com/wangdongpython/p/15026225.html