Skip to content

Instantly share code, notes, and snippets.

@bbl
Last active January 13, 2019 09:13
Show Gist options
  • Save bbl/c14a19660e77cee11be1e338f2c4f699 to your computer and use it in GitHub Desktop.
Save bbl/c14a19660e77cee11be1e338f2c4f699 to your computer and use it in GitHub Desktop.
Intall Consul on Linux [Ubuntu, Debian, CentOS]

Install consul on Linux

This snippet will help you to easily install consul on linux! Simply run the following:

curl -s -L https://git.io/fxJJR | sudo bash -s

The install_consul_linux.sh will be downloaded and evaluated.

set -e
set -o pipefail
mkdir -p /tmp/consul
cd /tmp/consul
echo "Downloading consul archive.."
curl https://releases.hashicorp.com/consul/1.2.3/consul_1.2.3_linux_amd64.zip -o consul.zip
echo "Unzipping archive.."
unzip consul.zip
echo "Moving consul executable to /usr/local/bin/"
mv consul /usr/local/bin
consul -v
echo "Successfully installed consul!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment