安装etcdkeeper 实现etcd可视化
文章目录安装etcdkeeper 实现etcd可视化参考文献安装etcdkeeper 实现etcd可视化# 下载etcdkeepercd /usr/local/bin#https://github.com/evildecay/etcdkeeper/releaseswget https://github.com/evildecay/etcdkeeper/releases/download/v0.7.
·
安装etcdkeeper 实现etcd可视化
# 下载etcdkeeper
cd /usr/local/bin
#https://github.com/evildecay/etcdkeeper/releases
wget https://github.com/evildecay/etcdkeeper/releases/download/v0.7.6/etcdkeeper-v0.7.6-linux_x86_64.zip
unzip etcdkeeper-v0.7.6-linux_x86_64.zip
cd etcdkeeper
chmod +x etcdkeeper
# 启动方式1:通过启动一个服务实现
##### 服务配置文件
cat > /lib/systemd/system/etcdkeeper.service << EOF
[Unit]
Description=etcdkeeper service
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/etcdkeeper/etcdkeeper -h 10.124.220.141 -p 8800
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
PrivateTmp=true
[Install]
WantedBy=multi-user.target
EOF
-h 指定etcdkeeper http监听的地址
-p 指定etcdkeeper http监听的端口 默认监听8080端口,但是8080端口过于常用,所以此处修改为8800端口
##### 启动服务
systemctl stop etcdkeeper
systemctl daemon-reload
systemctl start etcdkeeper
systemctl enable etcdkeeper.service
systemctl status etcdkeeper
# 启动方式2
####在etcdkeeper的根目录下,执行下面命令,执行etcdkeeper的二进制程序
./etcdkeeper
# 访问
http://10.124.220.141:8800/etcdkeeper/
# 测试
curl http://10.124.220.141:8800/etcdkeeper/ 可以正常访问
curl http://localhost:8800/etcdkeeper/ 不能正常访问 疑惑
curl http://127.0.0.1:8800/etcdkeeper/ 不能正常访问 疑惑
参考文献
参考链接:https://www.cnblogs.com/gytangyao/p/11407205.html
etcdkeeper的github地址:https://github.com/evildecay/etcdkeeper
更多推荐
已为社区贡献3条内容
所有评论(0)