etcd 安装部署

一、下载

1.github上下载

二、安装

1.tar -zxvf xxxx 解压后,mv xxxx /usr/local/ectd

2.添加软链接

三、开启启动

1.配置conf

 vim /usr/local/etcd/conf/etcd.conf 

ETCD_NAME=ETCD Server
ETCD_DATA_DIR="/usr/local/etc/etcd/data/"

2.配置服务

vim /etc/systemd/system/etcd.service

[Unit]
Description=etcd.service
[Service]
Type=notify
Restart=always
RestartSec=20
WorkingDirectory=/usr/local/etcd/data
EnvironmentFile=-/usr/local/etcd/conf/etcd.conf
ExecStart=/usr/local/etcd/etcd
[Install]
WantedBy=multi-user.target

#加载配置服务

systemctl daemon-reload
# 设置开机启动
systemctl enable etcd.service
# 进行启动
systemctl start etcd.service

你可能感兴趣的:(etcd,数据库,database)