Instantly share code, notes, and snippets.

Embed
What would you like to do?
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 run.

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