etcd web管理工具etcdkeeper
1.下载
bash
wget https://github.com/evildecay/etcdkeeper/releases/download/v0.7.5/etcdkeeper-v0.7.6-linux_x86_64.zip -P /usr/local/etcd/
wget https://github.com/evildecay/etcdkeeper/releases/download/v0.7.5/etcdkeeper-v0.7.6-linux_x86_64.zip -P /usr/local/etcd/
2.解压
bash
cd /usr/local/etcd
unzip etcdkeeper-v0.7.6-linux_x86_64.zip
cd /usr/local/etcd
unzip etcdkeeper-v0.7.6-linux_x86_64.zip
3.赋权限
bash
cd etcdkeeper
chmod 777 etcdkeeper
cd etcdkeeper
chmod 777 etcdkeeper
4.终端启动
-h:网站部署ip
-p:网站部署端口
-auth:是否开启授权认证 如果etcd开启了授权认证,则必须添加-auth=true参数,网页打开时会提示你输入etcd设置的root账号和密码
注意:此处的ip和端口不是etcd的ip和端口,而是挂载etcdkeeper网站的ip和端口,etcdkeeper默认会监听部署在localhost上的etcd的2379端口数据
bash
./etcdkeeper -h=172.17.0.15 -p=8080
./etcdkeeper -h=172.17.0.15 -p=8080
5.服务形式启动
bash
vim /etc/systemd/system/etcdkeeper.service
[Unit]
Description=EtcdKeeper Server
After=network.target
After=network-online.target
Wants=network-online.target
[Service]
Type=notify
WorkingDirectory=/var/lib/etcd/etcdkeeper
User=root
# set GOMAXPROCS to number of processors
ExecStart=/usr/local/etcd/etcdkeeper/etcdkeeper \
-h=172.17.0.15\
-p=8080\
Restart=on-failure
LimitNOFILE=65536
[Install]
WantedBy=multi-user.target
vim /etc/systemd/system/etcdkeeper.service
[Unit]
Description=EtcdKeeper Server
After=network.target
After=network-online.target
Wants=network-online.target
[Service]
Type=notify
WorkingDirectory=/var/lib/etcd/etcdkeeper
User=root
# set GOMAXPROCS to number of processors
ExecStart=/usr/local/etcd/etcdkeeper/etcdkeeper \
-h=172.17.0.15\
-p=8080\
Restart=on-failure
LimitNOFILE=65536
[Install]
WantedBy=multi-user.target
6.启动
bash
mkdir -m 777 /var/lib/etcd/etcdkeeper
systemctl daemon-reload
systemctl enable etcdkeeper
systemctl start etcdkeeper
mkdir -m 777 /var/lib/etcd/etcdkeeper
systemctl daemon-reload
systemctl enable etcdkeeper
systemctl start etcdkeeper