Created
December 7, 2022 09:31
-
-
Save strongant/de43819c4ed653a87264f8dedd8b4fa9 to your computer and use it in GitHub Desktop.
consul使用curl模拟注册
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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