Zkui安装
A UI dashboard that allows CRUD operations on Zookeeper.
一个允许在zookeeper上进行增删查改操作的图形管理工具,与zkdash类似。
1、拉取代码
git clone https://github.com/DeemOpen/zkui.git
2、使用 mvn 打包
cd zkui/
yum install -y maven
mvn clean install
3、修改配置文件
cp config.cfg target/
cd target/
vim config.cfg
serverPort=9091 # 指定端口
zkServer=172.60.0.107:2181,localhost:2181 # Comma seperated list of all the zookeeper servers
userSet = {"users": [{ "username":"admin" , "password":"admin","role": "ADMIN" },{ "username":"appconfig" , "password":"appconfig","role": "USER" }]} # 设置登录用户及其权限
4、启动程序至后台
nohup java -jar zkui-2.0-SNAPSHOT-jar-with-dependencies.jar >> zkui.out 2>&1 &
5、用浏览器访问:
http://172.16.100.217:9091/
参考: