How to install and configure node-zk-browser in Zookeeper
This article mainly introduces how to install and configure node-zk-browser in Zookeeper. It is very detailed and has a certain reference value. Friends who are interested must read it!
As a standardized distributed coordination component, Zookeeper has been more and more used in various big data platforms. In Zookeeper, some state information is often saved in a tree structure similar to the Linux file system, and node-zk-browser is an open source tool that can view Zookeeper tree state information graphically. Here are two main ways to record how to install node-zk-browser.
Installation of nodejs
Download nodejs,wget https://github.com/joyent/node/archive/v0.8.14.zip
Decompression, unzip v0.8.14.zip
Compile nodejs
Cd node-0.8.14
. / configure-- prefix=/usr/local/nodejs/nodejs-0.8.14
Make
Sudo make install
Set the .bash _ profile environment variable
Export PATH=$PATH:/usr/local/nodejs/nodejs-0.8.14/binexport NODE_PATH=/usr/local/nodejs/nodejs-0.8.14:/usr/local/nodejs/nodejs-0.8.14/lib/node_modules
Verify nodejs installation
Edit hello.js file, write to
Var http = require ("http"); http.createServer (function (request, response) {response.writeHead (200,{ "Content-Type": "text/plain"}); response.write ("Hello, nodejs!"); response.end ();}) .customers (5000)
Run hello.js,node hello.js
In the browser, observe $IP:5000 for output
Node-zk-browser
Download node-zk-browser,git clone https://github.com/killme2008/node-zk-browser.git
Install dependency packages
Install ejs,npm install-d ejs
Install express,npm install-d express@3.0.5
Install express-namespace,npm install-d express-namespace
Install zookeeper,npm-d zookeeper
Modify the zookeeper setting to change the ZK_HOST in start.sh to the actual zk address
Verify that, in the browser, observe $IP:3000 for output
These are all the contents of the article "how to install and configure node-zk-browser in Zookeeper". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!