Skip to content

Instantly share code, notes, and snippets.

@fk1blow
Forked from xbotter/consul.sh
Created August 2, 2017 08:40
Show Gist options
  • Select an option

  • Save fk1blow/aff9a2ac4e304eb0cc438edc14236bb3 to your computer and use it in GitHub Desktop.

Select an option

Save fk1blow/aff9a2ac4e304eb0cc438edc14236bb3 to your computer and use it in GitHub Desktop.
Install Consul on Ubuntu 16.04
#!/bin/bash
apt-get install -y curl unzip
mkdir -p /var/lib/consul
mkdir -p /usr/share/consul
mkdir -p /etc/consul/conf.d
curl -OL https://releases.hashicorp.com/consul/0.7.5/consul_0.7.5_linux_amd64.zip
unzip consul_0.7.5_linux_amd64.zip
mv consul /usr/local/bin/consul
curl -OL https://releases.hashicorp.com/consul/0.7.5/consul_0.7.5_web_ui.zip
unzip consul_0.7.5_web_ui.zip -d dist
mv dist /usr/share/consul/ui
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment