1. 程式人生 > >Zookeeper-配置管理工具zkdash

Zookeeper-配置管理工具zkdash

zookeeper zkdash

一、環境要求

zkdash是一個zookeeper的管理界面,也可以作為任何基於zookeeper的配置管理工具

1.mysql

2.安裝python2.7, 版本最好 >= 2.7.6

二、安裝部署

1.MySQL

yum install -y mysql-server
/etc/init.d/mysqld start
/usr/bin/mysqladmin -u root password '123456'
mysql> create database zkdash;
mysql> grant all privileges on zkdash.* to tokyo@'172.%';
mysql> set password for 'tokyo'@'172.%' = password('tokyo');
mysql> flush privileges;
# mysql -h 172.25.38.109 -utokyo -ptokyo

2.zkdash

git clone https://github.com/ireaderlab/zkdash.git
# vi conf/conf.yml
DATABASE:
 db: 'zkdash'
 host: '172.25.38.109'
 port: 3306
 user: 'tokyo'
 passwd: 'tokyo'
# python2.7 bin/syncdb.py
# python2.7 init.py -port=8888

3.訪問

http://172.25.38.109:8888/

zookeeper管理-->新增

技術分享圖片


參考文檔:

https://github.com/ireaderlab/zkdash

Zookeeper-配置管理工具zkdash