天天看點

zk ui安裝 (選裝,頁面檢視zk的資料)

# 使用WEB UI檢視監控叢集-zk ui安裝
cd /usr/local

git clone https://github.com/DeemOpen/zkui.git

yum install -y maven

# 更換使用阿裡雲maven源
vim /etc/maven/settings.xml 
	<mirrors>  

	    <mirror>
	        <id>nexus-aliyun</id>
	        <mirrorOf>central</mirrorOf>
	        <name>Nexus aliyun</name>
	        <url>http://maven.aliyun.com/nexus/content/groups/public</url>
	    </mirror>

	</mirrors>

cd zkui/

mvn clean install

# 修改配置檔案預設值
vim config.cfg
    serverPort=9090     #指定端口
    zkServer=localhost:2181,localhost:2182,localhost:2183 # 不使用127.0.0.1
    sessionTimeout=300

    # userSet中是登陸web界面的使用者名和密碼
	#管理者
	#admin:manager
	#使用者
	#appconfig:appconfig

# 啟動程式至背景
vim start.sh
	#!/bin/bash

	nohup java -jar target/zkui-2.0-SNAPSHOT-jar-with-dependencies.jar &

# 浏覽器通路
# 防火牆放行9090端口,後期改用nginx代理
http://192.168.0.187:9090/