概述
文章目录
- 安装etcdkeeper 实现etcd可视化
- 参考文献
安装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
最后
以上就是鲤鱼心锁为你收集整理的安装etcdkeeper 实现etcd可视化的全部内容,希望文章能够帮你解决安装etcdkeeper 实现etcd可视化所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复