Skip to content

Instantly share code, notes, and snippets.

@strongant
Created December 7, 2022 09:31
Show Gist options
  • Save strongant/de43819c4ed653a87264f8dedd8b4fa9 to your computer and use it in GitHub Desktop.
Save strongant/de43819c4ed653a87264f8dedd8b4fa9 to your computer and use it in GitHub Desktop.
consul使用curl模拟注册
curl -v --request PUT --data '{"id":"consul-demo-consumer-0", "name":"onsul-demo-consumer", "address":"10.188.50.17", "meta":{}, "port":51854, "check":{"interval":"10s", "http":"http://10.188.50.17:51854/actuator/health"}}' localhost:8500/v1/agent/service/register\?replace-existing-checks\=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment