dtm icon indicating copy to clipboard operation
dtm copied to clipboard

etcd有密码时,怎么使用用户名密码连接etcd做注册中心

Open hfdxiaoyu opened this issue 1 year ago • 4 comments

hfdxiaoyu avatar Jul 30 '24 10:07 hfdxiaoyu

你的具体情况是什么样的呢?这个要看你具体的微服务协议。有一些微服务协议支持带密码的url,这样就能无缝衔接dtm

yedf2 avatar Aug 04 '24 04:08 yedf2

MicroService: # gRPC/HTTP based microservice config Driver: 'dtm-driver-gozero' # name of the driver to handle register/discover Target: 'etcd://127.0.0.1:2379/dtmservice' # register dtm server to this url EndPoint: '0.0.0.0:36790' 使用的是这种服务发现方式,我使用 etcd://user:[email protected]:2379/dtmservice 这种方式不起作用

hfdxiaoyu avatar Aug 05 '24 03:08 hfdxiaoyu

Driver: dtm-driver-gozero Target : etcd://127.0.0.1:2379/dtmservice?user=Miami&password=password123

erdong01 avatar Sep 23 '24 08:09 erdong01

谢谢你,已经成功使用密码连接上了

hfdxiaoyu avatar Oct 13 '24 08:10 hfdxiaoyu