no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


consul [2016/07/06 20:38] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +====== Consul ======
 +
 +  * [[Vault]]
 +
 +  * [[https://www.consul.io/|Homepage]]
 +  * [[https://www.consul.io/downloads.html|Downloads]]
 +
 +=== Ubuntu Installation ===
 +
 +Download Consul, unpack the binary, and put it in ''/usr/local/sbin''.
 +
 +Set up the user and its home directory:
 +
 +<code>
 +mkdir /var/lib/consul
 +useradd consul -d /var/lib/consul
 +chown consul: /var/lib/consul
 +chmod 0700 /var/lib/consul
 +</code>
 +
 +Create a basic configuration file in ''/etc/consul.d/server/config.json'':
 +
 +<code>
 +mkdir -p /etc/consul.d/server
 +</code>
 +
 +<code>
 +{
 +  "bootstrap": false,
 +  "server": true,
 +  "log_level": "INFO"
 +  "enable_syslog": true,
 +  "ui": true
 +}
 +</code>
 +
 +Create an init configuration file at ''/etc/init/consul.conf'':
 +
 +<code>
 +description "Consul server process"
 +
 +start on (local-filesystems and net-device-up IFACE=eth0)
 +stop on runlevel [!12345]
 +
 +respawn
 +
 +setuid consul
 +setgid consul
 +
 +exec consul agent -config-dir /etc/consul.d/server
 +</code>
 +
 +Start the Consul service:
 +
 +<code>
 +service consul start
 +</code>
  

Navigation
QR Code
QR Code consul (generated for current page)