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

Nacos: Tips #153

Open
xvno opened this issue Aug 8, 2021 · 2 comments
Open

Nacos: Tips #153

xvno opened this issue Aug 8, 2021 · 2 comments

Comments

@xvno
Copy link
Owner

xvno commented Aug 8, 2021

Refs

@xvno
Copy link
Owner Author

xvno commented Aug 8, 2021

配置管理

  1. 发布配置
curl -X POST 'http://devhost:8848/nacos/v1/cs/config?dataId=io.vno.nacos&group=tut&content=HelloWorld'
  1. 获取配置
curl -X GET 'http://devhost:8848/nacos/v1/cs/config?data=io.vno.nacos&group=tut'
# HelloWorld%

@xvno
Copy link
Owner Author

xvno commented Aug 8, 2021

服务注册与发现

  1. 注册
curl -X POST 'http://devhost:8848/nacos/v1/ns/instance?serviceName=io.vno.serviceName&ip=20.205.243.166&port=8888'

2.发现

curl -X GET 'http://devhost:8848/nacos/v1/ns/instance?serviceName=io.vno.serviceName'

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

1 participant