Linux和windows下安装zk_ui.2.0

一,Linux

将压缩包上传到Linux下的soft下,用unzip zkui.zip解压,解压后会有个config.cfg的文件,vim config.cfg,修改里面的zookeeper参数

#Server Port
serverPort=9090
#Comma seperated list of all the zookeeper servers
zkServer=192.168.8.101:2181,192.168.8.102:2182,192.168.8.103:2183
#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":"123456","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=

zk_ui的监听端口是9090,下面的192.168.8.101:2181,是zookeeper的集群端口参数,还有

这个是设置界面的登陆账号密码,我的是admin跟123456

然后执行:nohup java -jar zkui-2.0-SNAPSHOT-jar-with-dependencies.jar &       不退出执行

然后就可以登陆浏览器IP:9090查看了

二,windows

1.先下载源码,GitHub地址:https://github.com/DeemOpen/zkui,并存放到自己想要安装的路劲

2.下载完解压到当前文件夹,我的路径是F:\zk_UI\windows

3.用cmd控制台进入到项目的文件夹根目录F:\zk_UI\windows\zkui-master,在命令行输入mvn clean install(前提是有Java环境跟maven环境)会将项目编译,会在文件夹根目录看到个config.cfg,修改参数,将

修改 zookeeper地址,登陆的用户名跟密码,我的还是admin跟123456

4.将配置文件复制到编译后生成的两个jar包同目录下F:\zk_UI\windows\zkui-master\target

5.将cmd切换到jar包所在的目录下,然后命令行执行 java -jar zkui-2.0-SNAPSHOT-jar-with-dependencies.jar &

6.在浏览器里输入http://localhost:9090,就会显示zk_ui的界面

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值