linux consul部署安装(一)

首先说linux安装,现阶段最新版本为1.3

下载地址:https://www.consul.io/downloads.html

1. 下载并解压consul

# cd /opt/

# mkdir consul

# chmod 777 consul

# cd consul

# wget https://releases.hashicorp.com/consul/1.3.0/consul_1.3.0_linux_amd64.zip

# unzip consul_1.3.0_linux_amd64.zip

# cp consul /usr/local/bin/

linux consul部署安装(一)_第1张图片

2. 检查是否安装成功

# consul

# consul version

3.启动

# consul agent -dev -ui -node=consul-dev -client=10.39.45.56

consul agent -data-dir /tmp/node0 -node=node0 -bind=10.39.45.56 -datacenter=dc1 -ui -client=10.39.45.56 -server -bootstrap-expect 1

linux consul部署安装(一)_第2张图片

验证:

http://10.39.45.56:8500/ui

关闭:

consul leave -rpc-addr=10.39.45.56:8500

未完待续

 

你可能感兴趣的:(技术运维)