ppc64le centos7 安装etcd 1. 到http://rpmfind.net/下载以下4个包: golang-1.6.2-1.fc24.ppc64le.rpm golang-bin-1.6.2-1.fc24.ppc64le.rpm golang-src-1.6.2-1.fc24.noarch.rpm go-srpm-macros-2-3.fc23.noarch.rpm 2. 下载etcd-2.3.3.tar.gz并解压,之后: cd etcd-2.3.3 && ./build 3. 设置如下环境变量: echo "export ETCD_UNSUPPORTED_ARCH=ppc64le" >> /etc/profile.d/etcd.sh source /etc/profile.d/etcd.sh 4. cp bin/* /usr/local/bin/ 5. cp contrib/systemd/etcd.service /usr/lib/systemd/system并修改如下 [Unit] Description=etcd key-value store [Service] Type=notify Environment=ETCD_DATA_DIR=/opt/etcd Environment=ETCD_NAME=%m Environment=ETCD_UNSUPPORTED_ARCH=ppc64le #此行必须添加 ExecStart=/usr/local/bin/etcd Restart=always RestartSec=10s LimitNOFILE=40000 [Install] WantedBy=multi-user.target 6. systemctl start etcd 7. 设置键值对 etcdctl set /backend/app1 ‘172.16.1.45:8080‘ etcdctl set /backend/app1 ‘172.16.0.204:8080‘
时间: 2024-10-09 06:27:37