Differences
This shows you the differences between two versions of the page.
| consul [2016/07/06 20:38] – created - external edit 127.0.0.1 | consul [2025/07/21 08:29] (current) – removed steve | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Consul ====== | ||
| - | |||
| - | * [[Vault]] | ||
| - | |||
| - | * [[https:// | ||
| - | * [[https:// | ||
| - | |||
| - | === Ubuntu Installation === | ||
| - | |||
| - | Download Consul, unpack the binary, and put it in ''/ | ||
| - | |||
| - | Set up the user and its home directory: | ||
| - | |||
| - | < | ||
| - | mkdir / | ||
| - | useradd consul -d / | ||
| - | chown consul: / | ||
| - | chmod 0700 / | ||
| - | </ | ||
| - | |||
| - | Create a basic configuration file in ''/ | ||
| - | |||
| - | < | ||
| - | mkdir -p / | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | { | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | } | ||
| - | </ | ||
| - | |||
| - | Create an init configuration file at ''/ | ||
| - | |||
| - | < | ||
| - | description " | ||
| - | |||
| - | start on (local-filesystems and net-device-up IFACE=eth0) | ||
| - | stop on runlevel [!12345] | ||
| - | |||
| - | respawn | ||
| - | |||
| - | setuid consul | ||
| - | setgid consul | ||
| - | |||
| - | exec consul agent -config-dir / | ||
| - | </ | ||
| - | |||
| - | Start the Consul service: | ||
| - | |||
| - | < | ||
| - | service consul start | ||
| - | </ | ||