etcd & docker-compose安装

docker-compose 安装
注意版本,截至2020.5.30最新稳定版为1.25.5

sudo curl -L https://github.com/docker/compose/releases/download/1.25.5/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version

etcd 安装
注意版本,截至2020.5.30最新稳定版为v3.4.9

curl -s https://api.github.com/repos/etcd-io/etcd/releases/latest \
  | grep browser_download_url \
  | grep linux-amd64 \
  | cut -d '"' -f 4 \
  | wget -qi -
tar xvf *.tar.gz
cd etcd-*/
sudo mv etcd* /usr/local/bin/
cd ~
rm -rf /tmp/etcd

详见:此处

你可能感兴趣的:(etcd,docker-compose,运维)