Skip to content
This repository has been archived by the owner on Jan 7, 2022. It is now read-only.

Latest commit

 

History

History

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

install consul

docker run -d --name consul -p 8500:8500 -e 'CONSUL_LOCAL_CONFIG={"leave_on_terminate": true}' consul agent -server  -bootstrap-expect 1  -bind=0.0.0.0 -client=0.0.0.0

install zookeeper

docker run --name zookeeper -p 2189:2181 -d zookeeper:3.4

install etcd

NODE1=10.0.101.68
docker run -d   -p 2379:2379  -p 2380:2380 \
--name etcd  \
quay.io/coreos/etcd:latest \
/usr/local/bin/etcd   --data-dir=/etcd-data --name node1 \
--initial-advertise-peer-urls http://${NODE1}:2380 \
--listen-peer-urls http://0.0.0.0:2380  \
--advertise-client-urls http://${NODE1}:2379 \
--listen-client-urls http://0.0.0.0:2379  \
--initial-cluster node1=http://${NODE1}:2380