| 服务 | Consul HTTP API/UI(默认 8500;HTTPS 可配同端口) |
|---|---|
| 协议 | TCP/HTTP |
| 用途 | 服务注册发现、KV 存储、配置中心 |
| 安全等级 | 仅业务网段,建议 ACL 全开 |
Consul 默认无 ACL 时任何人都能注册假服务或读取全部 KV——微服务环境里的"配置裸奔";新版建议开启 ACL 并用 bootstrap token。
API 与管理
API 与管理
curl -s http://consul:8500/v1/status/leader
curl -s http://consul:8500/v1/catalog/services | head -c 300
consul kv get -recurse config/app/UI 路径 /ui 可直接打开;生产暴露面评估时它属于"高风险后台"。