zookeeper可视化界面

IT
IT
IT
335
文章
1
评论
2020年4月22日14:02:33 评论 1,323 3073字阅读10分14秒

安装maven

生成zkui的jar包

修改成自己所需信息

[root@iZ2zeflzb6atg5mhyyxn7oZ ~]# git clone https://gitee.com/ilanni/zkui.git
Cloning into 'zkui'...
remote: Enumerating objects: 527, done.
remote: Counting objects: 100% (527/527), done.
remote: Compressing objects: 100% (206/206), done.
remote: Total 527 (delta 217), reused 527 (delta 217), pack-reused 0
Receiving objects: 100% (527/527), 477.61 KiB | 0 bytes/s, done.
Resolving deltas: 100% (217/217), done.
[root@iZ2zeflzb6atg5mhyyxn7oZ ~]# cd zkui/
[root@iZ2zeflzb6atg5mhyyxn7oZ zkui]# vim config.cfg
#Server Port
serverPort=9090
#Comma seperated list of all the zookeeper servers
zkServer=localhost:2181
#Http path of the repository. Ignore if you dont intent to upload files from repository.
scmRepo=http://myserver.com/@rev1=
#Path appended to the repo url. Ignore if you dont intent to upload files from repository.
scmRepoPath=//appconfig.txt
#if set to true then userSet is used for authentication, else ldap authentication is used.
ldapAuth=false
ldapDomain=mycompany,mydomain
#ldap authentication url. Ignore if using file based authentication.
ldapUrl=ldap://<ldap_host>:<ldap_port>/dc=mycom,dc=com
#Specific roles for ldap authenticated users. Ignore if using file based authentication.
ldapRoleSet={"users": [{ "username":"domain\\user1" , "role": "ADMIN" }]}
userSet = {"users": [{ "username":"admin" , "password":"manager","role": "ADMIN" },{ "username":"appconfig" , "password":"appconfig","role": "USER" }]}
#Set to prod in production and dev in local. Setting to dev will clear history each time.
env=prod
jdbcClass=org.h2.Driver
jdbcUrl=jdbc:h2:zkui
jdbcUser=root
jdbcPwd=manager
#If you want to use mysql db to store history then comment the h2 db section.
#jdbcClass=com.mysql.jdbc.Driver
#jdbcUrl=jdbc:mysql://localhost:3306/zkui
#jdbcUser=root
#jdbcPwd=manager
loginMessage=Please login using admin/manager or appconfig/appconfig.
#session timeout 5 mins/300 secs.
sessionTimeout=300
#Default 5 seconds to keep short lived zk sessions. If you have large data then the read will take more than 30 seconds so increase this accordingly. 
#A bigger zkSessionTimeout means the connection will be held longer and resource consumption will be high.
zkSessionTimeout=5
#Block PWD exposure over rest call.
blockPwdOverRest=false
#ignore rest of the props below if https=false.
https=false
keystoreFile=/home/user/keystore.jks
keystorePwd=password
keystoreManagerPwd=password
# The default ACL to use for all creation of nodes. If left blank, then all nodes will be universally accessible
# Permissions are based on single character flags: c (Create), r (read), w (write), d (delete), a (admin), * (all)
# For example defaultAcl={"acls": [{"scheme":"ip", "id":"192.168.1.192", "perms":"*"}, {"scheme":"ip", id":"192.168.1.0/24", "perms":"r"}]
defaultAcl=
# Set X-Forwarded-For to true if zkui is behind a proxy
X-Forwarded-For=false
~                                                                                                                                                                                                                                        
-- INSERT --

编译

[root@iZ2zeflzb6atg5mhyyxn7oZ zkui]# mvn clean install

启动

[root@iZ2zeflzb6atg5mhyyxn7oZ zkui]# nohup java -jar target/zkui-2.0-SNAPSHOT-jar-with-dependencies.jar &

查看端口

[root@iZ2zeflzb6atg5mhyyxn7oZ zkui]# ss -tnlp
State       Recv-Q Send-Q                                                                       Local Address:Port                                                                                      Peer Address:Port              
LISTEN      0      128                                                                                      *:22                                                                                                   *:*                   users:(("sshd",pid=1235,fd=3))
LISTEN      0      50                                                                                       *:45376                                                                                                *:*                   users:(("java",pid=11643,fd=20))
LISTEN      0      50                                                                                       *:9090                                                                                                 *:*                   users:(("java",pid=12027,fd=7))
LISTEN      0      50                                                                                       *:2181                                                                                                 *:*                   users:(("java",pid=11643,fd=25))

访问

http://123.56.127.70:9090/login

zookeeper可视化界面

账号和密码

此处为隐藏的内容!
登录后方可查看!

zookeeper可视化界面

继续阅读
  • 我的QQ
  • QQ扫一扫
  • weinxin
  • 我的头条
  • 头条扫一扫
  • weinxin
IT
  • 本文由 发表于 2020年4月22日14:02:33
  • 除非特殊声明,本站文章均为原创,转载请务必保留本文链接
zookeeper集群 zookeeper

zookeeper集群

简介 ZooKeeper是一个分布式的,开放源码的分布式应用程序协调服务,是Google的Chubby一个开源的实现,是Hadoop和Hbase的重要组件。它是一个为分布式应用提供一致性服务的软件,提...
zookeeper集群 zookeeper

zookeeper集群

简介 ZooKeeper是一个分布式的,开放源码的分布式应用程序协调服务,是Google的Chubby一个开源的实现,是Hadoop和Hbase的重要组件。它是一个为分布式应用提供一致性服务的软件,提...