、ETCD 安装: nohup etcd --name etcd0 \ --advertise-client-urls http://172.31.24.246:2379,http://127.0.0.1:2379 \ --listen-client-urls http://172.31.24.246:2379,http://127.0.0.1:2379 \ --data-dir=/data/etcdir/ \ > /var/log/etcd.log >& & nohup flanneld -etcd-prefix=>& & 2、Flannel安装: wget https://github.com/coreos/flannel/releases/download/v0.7.1/flannel-v0.7.1-linux-amd64.tar.gz mv flanneld /usr/bin/ mv mk-docker-opts.sh /usr/bin/ nohup flanneld -etcd-prefix=>& & // more /run/flannel/subnet.env mk-docker-opts.sh -d /run/flannel/docker // more /run/flannel/docker --bip= --ip-masq= /etc/sysconfig/docker