consul
Consul is a tool for service discovery and configuration. Consul is distributed, highly available, and extremely scalable.
Uses NSSM as the service wrapper. More info at: https://nssm.cc/
#### Package Parameters
The package parameters can be set -
* `/noservice` - Disables installation of Windows service
* `/apiaddr` - Sets environment variable `CONSUL_HTTP_ADDR` for easy execute commands on remote agent
* `/agentargs` - Sets up [Consul agent options via commandline](https://developer.hashicorp.com/consul/docs/agent/config/cli-flags) for Consul agent service
These parameters can be passed to the installer with the use of `--params`.
For example:
* `--params="'/noservice /apiaddr=http://10.0.0.1:8500'"`
* `--params="'/agentargs=""-config-file %PROGRAMDATA%\consul\dsc-config\default.json -client 10.0.0.1""'"` (be cautious of quotes)
For setting Consul agent CLI options, it is better dropping a `config.hcl` into `%PROGRAMDATA%\consul\config` instead of setting them with package parameters.
choco install consul -y| 版本 | 大小 | 同步日期 | 包文件 |
|---|---|---|---|
| 2.0.4 | 135.3 MiB | 2026-09-12 | 下载 .nupkg |
| 2.0.3 | 135.1 MiB | 2026-09-12 | 下载 .nupkg |