Skip to content

Instantly share code, notes, and snippets.

@patrickhuber
Last active April 7, 2017 14:00
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 patrickhuber/17e88f28532e9851dada8d5e35809d20 to your computer and use it in GitHub Desktop.
Save patrickhuber/17e88f28532e9851dada8d5e35809d20 to your computer and use it in GitHub Desktop.
Install Consul

Install Consule 0.8.0 on centos 7

update yum and install wget,unzip,dig

yum update -y
yum install wget uzip bind-utils -y

create directories

mkdir /tmp/consul
mkdir /var/consul

download consul

cd /tmp/consul
wget https://releases.hashicorp.com/consul/0.8.0/consul_0.8.0_linux_amd64.zip

unzip consul and move to target

unzip consul_0.8.0_linux_amd64.zip
move consul_0.8.0_linux_amd64.zip /var/consul/

update path

echo "PATH=$PATH:/var/consul" > /etc/profile.d/consul.sh
source /etc/profile.d/consul.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment