zookeeper可视化界面

DevOps Zookeeper评论1,292字数 2836阅读9分27秒阅读模式

克隆代码

[centos@ip-10-0-3-215 ~]$ git clone https://github.com/DeemOpen/zkui.git
Cloning into 'zkui'...
remote: Enumerating objects: 527, done.

Receiving objects: 100% (527/527), 477.61 KiB | 372.00 KiB/s, done.
Resolving deltas: 100% (217/217), done.

修改代码

[centos@ip-10-0-3-215 ~]$ cd zkui/
[centos@ip-10-0-3-215 zkui]$ ls
config.cfg  docker  images  LICENSE-2.0.txt  Makefile  nbactions.xml  pom.xml  README.md  run.sh  src
[centos@ip-10-0-3-215 zkui]$ vim config.cfg 
#Server Port
serverPort=9090
#Comma seperated list of all the zookeeper servers
zkServer=10.0.3.93: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

编译打包

[centos@ip-10-0-3-215 zkui]$ pwd
/home/centos/zkui
[centos@ip-10-0-3-215 zkui]$ mvn clean install
启动服务
[centos@ip-10-0-3-215 zkui]$ nohup java -jar target/zkui-2.0-SNAPSHOT-jar-with-dependencies.jar &
查看端口
centos@ip-10-0-3-215 zkui]$ netstat -tnlp|grep 9090
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp6       0      0 :::9090                 :::*                    LISTEN      26361/java

zookeeper可视化界面

继续阅读
DevOps
  • 本文由 发表于 2022年8月2日 18:46:51
  • 除非特殊声明,本站文章均为原创,转载请务必保留本文链接
Zookeeper3.8集群 Zookeeper

Zookeeper3.8集群

安装jdk 安装文档 集群规划 zookeper集群至少需要3台服务器,并且强烈建议使用奇数个服务器。因为zookeeper通过半数机制来判断整个集群是否可用,也就是说集群中有一半以...
Zookeeper3.5.7集群部署 Zookeeper

Zookeeper3.5.7集群部署

简述 ZooKeeper 是 Apache 的一个顶级项目,为分布式应用提供高效、高可用的分布式协调服务。 ZooKeeper本质上是一个分布式的小文件存储系统。提供类似于文件系统目录树方式的...
评论  0  访客  0

发表评论