zkui安装(zookeeper可视化)

1.clone github上的项目

地址:zkui

2.根据自己配置修改config.cfg

主要根据自己情况修改zkServer=处的值(位于config.cfg文件第5行左右)

zookeeper_config

3.安装

  1. mvn clean install
  2. Copy the config.cfg to the folder with the jar file. Modify it to point to the zookeeper instance. Multiple zk instances are coma separated. eg: server1:2181,server2:2181. First server should always be the leader.
  3. Run the jar. ( java -jar zkui-2.0-SNAPSHOT-jar-with-dependencies.jar & )
  4. http://localhost:9090 (默认访问9090)

4.运行

C:\MyJavaDevelopment\IDEA_WORKSPACE\zkui-master\target>java -jar ./zkui-2.0-SNAPSHOT-jar-with-dependencies.jar
十二月 20, 2019 3:19:01 上午 com.googlecode.flyway.core.metadatatable.MetaDataTableImpl createIfNotExists
信息: Creating Metadata table: "PUBLIC"."schema_version"
十二月 20, 2019 3:19:01 上午 com.googlecode.flyway.core.command.DbMigrate migrate
信息: Current version of schema "PUBLIC": << Empty Schema >>
十二月 20, 2019 3:19:01 上午 com.googlecode.flyway.core.command.DbMigrate applyMigration
信息: Migrating schema "PUBLIC" to version 1
十二月 20, 2019 3:19:01 上午 com.googlecode.flyway.core.command.DbMigrate logSummary
信息: Successfully applied 1 migration to schema "PUBLIC" (execution time 00:00.048s).
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.

注意:把配置修改好的config.cfg文件和zkui-2.0-SNAPSHOT-jar-with-dependencies.jar放在同一目录下

如下图:

same_path

5.访问

web

你可能感兴趣的:(zkui安装(zookeeper可视化))