Skip to content

Instantly share code, notes, and snippets.

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 | sudo bash -s

The will be downloaded and evaluated.

set -e
set -o pipefail
mkdir -p /tmp/consul
cd /tmp/consul
echo "Downloading consul archive.."
curl -o
echo "Unzipping archive.."
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
You can’t perform that action at this time.