In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "the construction method of ZooKeeper monitoring platform". In the daily operation, I believe that many people have doubts about the construction method of ZooKeeper monitoring platform. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to build ZooKeeper monitoring platform". Next, please follow the editor to study!
System environment:
SUSE Linux Enterprise Server 10 SP1 (x86 / 64)
Alibaba's open source taokeeper is used this time, and the relevant software packages are downloaded at the following address:
Taokeeper.sql
Http://down.51cto.com/data/718756
Taokeeper-monitor-config.properties
Http://down.51cto.com/data/715439
Taokeeper-monitor
Http://down.51cto.com/data/715431
=
I. deployment of JAVA environment
1. JDK configuration
# tar xvzf jdk-7u25-linux-x64.tar.gz-C / usr/local
# cd / usr/local
# ln-s jdk1.7.0_25 jdk
# vim / etc/profile
Export JAVA_HOME=/usr/local/jdk
Export CLASS_PATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib
Export PATH=$PATH:$JAVA_HOME/bin
# source / etc/profile
2. Tomcat installation
# tar xvzf apache-tomcat-7.0.39.tar.gz-C / usr/local
# cd / usr/local
# ln-s apache-tomcat-7.0.39 tomcat
=
II. Taokeeper deployment
# mysql-uroot
< taokeeper.sql # tar xvzf taokeeper-monitor.tar.gz -C /usr/local/tomcat/webapps # mysql -uroot -e "grant all privileges on taokeeper.* to mytest@'172.18.35.29' identified by '123456';" # mysql -uroot -e "flush privileges;" ----------------------------------------------------------------------------------------------------------------------------------------------- # mkdir -p /usr/local/tomcat/webapps/taokeeper-monitor/{config,ZookeeperStore,logs} # vim /usr/local/tomcat/webapps/taokeeper-monitor/config/taokeeper-monitor-config.properties systemInfo.envName=TAOKEEPER #DBCP dbcp.driverClassName=com.mysql.jdbc.Driver dbcp.dbJDBCUrl=jdbc:mysql://172.18.35.29:3306/taokeeper dbcp.characterEncoding=GBK dbcp.username=mytest dbcp.password=123456 dbcp.maxActive=30 dbcp.maxIdle=10 dbcp.maxWait=10000 #SystemConstant SystemConstent.dataStoreBasePath=/usr/local/tomcat/webapps/taokeeper-monitor/ZookeeperStore SystemConstant.configOfMsgCenter= #SSH account of zk server SystemConstant.portOfSSH=22 SystemConstant.userNameOfSSH=root SystemConstant.passwordOfSSH=123456 #LOGBACK LOG_HOME=/usr/local/tomcat/webapps/taokeeper-monitor/logs LOG_LEVEL=DEBUG MAX_HISTORY_LOG_FILES=10 # chown -R nobody:nogroup /usr/local/tomcat/webapps/taokeeper-monitor # chmod -R 750 /usr/local/tomcat/webapps/taokeeper-monitor ----------------------------------------------------------------------------------------------------------------------------------------------- # vim /usr/local/tomcat/bin/catalina.sh 在236行后添加: JAVA_OPTS=-DconfigFilePath="/usr/local/tomcat/webapps/taokeeper-monitor/config/taokeeper-monitor-config.properties" # vim /usr/local/tomcat/conf/server.xml 修改为内网IP,在22行: 修改为80端口和绑定内网IP,在70行: 修改绑定内网IP,在91行: ----------------------------------------------------------------------------------------------------------------------------------------------- # vim /usr/local/tomcat/webapps/taokeeper-monitor/WEB-INF/classes/log4j.properties 替换其中的日志路径为: /usr/local/tomcat/webapps/taokeeper-monitor/logs/taokeeper-monitor.log 服务启动: # /usr/local/tomcat/bin/startup.sh 服务关闭: # /usr/local/tomcat/bin/shutdown.sh # echo "alias nc='netcat'" >> / etc/bash.bashrc
# sh / etc/bash.bashrc
-
Visit the following address:
Http://172.18.35.29/taokeeper-monitor
=
III. Security settings
1. Delete the tomcat default directory
Rm-rf / usr/local/tomcat/webapps/*
2. Delete jspx file and parse
/ usr/local/tomcat/conf/web.xml (line 368)
* .jspx
3. Prohibit the display of error messages
/ usr/local/tomcat/conf/web.xml
After this line, add the following:
five hundred
/ 500.jsp
4. Start in non-root mode
Always failed to start in jsvc mode, which has not been solved yet
=
IV. Effect display
The problems still exist at present:
The total number of connections and Watch is 0, which cannot be obtained, but the node self-test is OK.
At this point, the study on the "building method of ZooKeeper monitoring platform" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.