This snippet will help you to easily install consul on linux! Simply run the following:
curl -s -L https://git.io/fxJJR | sudo bash -sThe 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!" |