ectd3.1.19离线安装

最近在捣鼓kubernetes的东西,写一下离线安装过程

其实也没什么可写的:

1在github上下载ect的安装包64位的linux版本(用的centos7的虚机)。

2将下载的包移到usr下,其实也没什么完全是为了解压方便

mv etcd-v3.1.19-linux-amd64.tar.gz  /usr/bin
3解压etcd的包

tar -xf etcd-v3.1.19-linux-amd64.tar.gz 
4将etcdctl和etcd的安装包放到usr/bin的路径下

mv etcd /usr/bin
mv etcdctl /usr/bin
5新建ectd.service

touch /usr/lib/systemd/system/etcd.service
6编辑修改etcd.serivice

vi etcd.service 

设置etcd的路径

[Unit]
Description = Etcd Server
After=network.target

[Service]
Type=simple
WorkingDirectory=/usr/lib/etcd
EnvironmentFile=-/etc/etcd/etcd.conf
ExecStart=/usr/bin/etcd

[Install]
WantedBy=multi-user.target

7运行ectd服务并将服务加入到开机启动列表中

systemctl daemon-reload

systemctl enable etcd.service

systemctl start ectd.service

8查看ectdctl的状态
etcdctl cluster-health

9查看etcd的版本信息

etcdctl -version
 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章