zkui

简介

zkui它提供了一个管理界面,可以针对zookeepr的节点值进行CRUD操作,同时也提供了安全认证。

下载安装

项目地址

  1. 下载
$ git clone https://github.com/DeemOpen/zkui.git
Cloning into 'zkui'...
remote: Counting objects: 527, done.
remote: Total 527 (delta 0), reused 0 (delta 0), pack-reused 526
Receiving objects: 100% (527/527), 478.39 KiB | 164.00 KiB/s, done.
Resolving deltas: 100% (217/217), done.
  1. 打包
$ cd zkui

$ mvn clean package -DskipTests=true
... package info ...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.472 s
[INFO] Finished at: 2018-08-28T11:15:34+08:00
[INFO] ------------------------------------------------------------------------
  1. 运行
# 将config.cfg复制到上一步生成的jar文件所在目录。
$ cp config.cfg ./target/config.cfg $ java -jar ./target/zkui-2.0-SNAPSHOT-jar-with-dependencies.jar
Aug 28, 2018 11:17:48 AM com.googlecode.flyway.core.metadatatable.MetaDataTableImpl createIfNotExists
信息: Creating Metadata table: "PUBLIC"."schema_version"
Aug 28, 2018 11:17:48 AM com.googlecode.flyway.core.command.DbMigrate migrate
信息: Current version of schema "PUBLIC": << Empty Schema >>
Aug 28, 2018 11:17:48 AM com.googlecode.flyway.core.command.DbMigrate applyMigration
信息: Migrating schema "PUBLIC" to version 1
Aug 28, 2018 11:17:48 AM com.googlecode.flyway.core.command.DbMigrate logSummary
信息: Successfully applied 1 migration to schema "PUBLIC" (execution time 00:00.081s).
log4j:WARN No appenders could be found for logger (org.eclipse.jetty.util.log).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
  1. 测试
    访问http://localhost:9090,如能正常访问并看到如下界面,则运行正常。
    默认账密:
# 角色为ADMIN
username: admin
password: manager # 角色为USER
username: appconfig
password: appconfig
 
Zookeeper可视化工具-LMLPHP
zkui登录界面
  1. 主界面

     
    Zookeeper可视化工具-LMLPHP
    主界面

完!!!

作者:sprinkle_liz
链接:https://www.jianshu.com/p/ebc081a87a42
來源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。

05-11 16:56