Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
consul [2016/07/06 14:26] steve |
consul [2016/07/06 14:38] steve |
||
---|---|---|---|
Line 9: | Line 9: | ||
Download Consul, unpack the binary, and put it in ''/usr/local/sbin''. | 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'': | Create an init configuration file at ''/etc/init/consul.conf'': | ||
Line 26: | Line 51: | ||
</code> | </code> | ||
- | Create a basic configuration file in ''/etc/consul.d/server'': | + | Start the Consul service: |
<code> | <code> | ||
- | { | + | service consul start |
- | "bootstrap": false, | + | </code> |
- | "server": true, | + | |
- | "log_level": "INFO" | + | |
- | "enable_syslog": true, | + | |
- | "ui": true | + |