假设有一个名叫“web”服务运行在80 端口,写入如下配置:. $ echo '{"service": {"name": "web", "tags": ["rails"], "port": 80}}' \. > ./consul.d/web.json.
確定! 回上一頁