Skip to content

Instantly share code, notes, and snippets.

@sofyan-ahmad
Last active April 10, 2017 03:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sofyan-ahmad/b5949dfa72f5c0c8348e6805ceef1b7c to your computer and use it in GitHub Desktop.
Save sofyan-ahmad/b5949dfa72f5c0c8348e6805ceef1b7c to your computer and use it in GitHub Desktop.
Install Consul Ubuntu - 0.6.4
#!/bin/bash
sudoapt-get install -y curl unzip
sudo mkdir -p /var/lib/consul
sudo mkdir -p /usr/share/consul
sudo mkdir -p /etc/consul/conf.d
curl -OL https://releases.hashicorp.com/consul/0.8.0/consul_0.8.0_linux_amd64.zip
unzip consul_0.8.0_linux_amd64.zip
sudo mv consul /usr/local/bin/consul
curl -OL curl -OL https://releases.hashicorp.com/consul/0.8.0/consul_0.8.0_web_ui.zip
unzip consul_0.8.0_web_ui.zip -d consul-ui
sudo mv consul-ui /usr/share/consul/ui
@sofyan-ahmad
Copy link
Author

References:
https://www.consul.io/intro/getting-started/install.html
Make sure fully read:
https://www.consul.io/intro/getting-started/agent.html

@sofyan-ahmad
Copy link
Author

Run the agent: consul agent -dev -advertise=127.0.0.1

@sofyan-ahmad
Copy link
Author

sofyan-ahmad commented May 8, 2016

Access the ui: http://llocalhost:8500/ui

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment