Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hfdxiaoyu opened this issue Jul 30, 2024 · 4 comments
Open

Comments

@hfdxiaoyu
Copy link

No description provided.

@yedf2
Copy link
Contributor

yedf2 commented Aug 4, 2024

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

@hfdxiaoyu
Copy link
Author

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 这种方式不起作用

@erdong01
Copy link

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

@hfdxiaoyu
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants