zookeeper Of web Interface viewing tool Node-ZK-Browser The interface of is to use nodejs Today, I try to build .

1. install nodejs

[root@localhost product]# pwd
/usr/local/product
[root@localhost product]# wget https://nodejs.org/dist/v6.11.4/node-v6.11.4.tar.gz
[root@localhost product]# tar -zxvf node-v6.11.4.tar.gz
[root@localhost product]# cd node-v6.11.4
[root@localhost node-v6.11.4]# ./configure --prefix=/usr/local/product/node-v6.11.4
[root@localhost node-v6.11.4]# make && make install

2. Configure environment variables

[root@localhost node-v6.11.4]# vim ~/.bash_profile
#nodejs
export PATH=$PATH:/usr/local/product/node-v6.11.4/bin
export NODE_PATH=/usr/local/product/node-v6.11.4:/usr/local/product/node-v6.11.4/lib/node_modules
[root@localhost node-v6.11.4]# source ~/.bash_profile

3. verification

nodejs I brought it with me npm Of . Run the following script hello.js To verify that the installation was successful :

[root@localhost node-v6.11.4]# vim hello.js
var http = require("http"); http.createServer(function(request, response) {
response.writeHead(200, {"Content-Type": "text/plain"});
response.write("Hello World");
response.end();
}).listen(9987);
[root@localhost node-v6.11.4]# node hello.js

Type in the browser : http://192.168.10.186:9987  Can be displayed ”Hello World” That means the installation is successful , As shown in the figure below :

4. Install dependency packages

[root@localhost product]# wget https://github.com/killme2008/node-zk-browser/archive/master.zip
[root@localhost product]# unzip node-zk-browser-master.zip
[root@localhost product]# cd node-zk-browser-master
[root@localhost node-zk-browser-master]# npm install -d
[root@localhost node-zk-browser-master]# cd node_modules/
[root@localhost node_modules]# ll
total 16
drwxr-xr-x 3 root root 4096 Oct 19 16:16 ejs
drwxr-xr-x 5 root root 4096 Oct 19 16:17 express
drwxr-xr-x 3 root root 4096 Oct 19 16:17 express-namespace
drwxr-xr-x 10 root root 4096 Oct 19 16:18 zookeeper

5. modify app.js The configuration file

[root@localhost node-zk-browser-master]# pwd
/usr/local/product/node-zk-browser-master
[root@localhost node-zk-browser-master]# vim app.js
var zkclient = new ZkClient("192.168.10.186:3000"); # Modify this line

The user name and password are in the  user.json in , Only after logging in can you web Create and delete on the interface zk node

6. Start the service

[root@localhost node-zk-browser-master]# ./start.sh

Browser input :http://192.168.10.186:3000 Then you can access it , The default port is 3000 stay app.js You can modify .

The installed interface is shown in the figure below :

CentOS6.8 The structures, zookeeper web Interface viewing tool node-zk-browser More articles about

  1. Centos6.8 The structures, SVN The server

    1.Centos6.8 The structures, SVN The server Subversion It's a freedom , Open source version control system .Subversion Store the files in the central version library . This version library is very similar to an ordinary file server , The difference is , It can record every ...

  2. adopt web Interface view hadoop The address of the cluster running log

    adopt web Interface view hadoop The address of the cluster running log : http://hostname:8088/logs/ SecurityAuth-root.audit 0 bytes  Aug 27, 2016 5 ...

  3. About Web The problem of the permission to view the log in the interface

    About Web The problem of the permission to view the log in the interface @(Hadoop) Access the cluster's 8088 port , adopt web ui When viewing the job log , Found no permission to view ,8088 The upper right corner of the main interface shows Logged in as : dr.who, It's hidden ...

  4. [IDS]CentOS6.6 This is based on snort+barnyard2+base Intrusion detection system for , Hyperdetail !!!

    The most detailed CentOS6.6 This is based on snort+barnyard2+base A disclaimer of intrusion detection system based on . If it is lost due to the use of this document ( System crash . Data loss, etc ), The author assumes no responsibility . Two . This document is for personal use only ...

  5. Redis Web Interface management tools

    Redis Web Interface management tools   A very friendly Redis Web Interface management tools . be based on .NET Realization . Can pass Mono Deploy to Linux On , Here's my deployment in CentOS 5.7 + Mono 2.10.8 + ...

  6. Python Simple and easy web Log view tool & Can be converted to a command line tool

    Python Simple and easy web Log view tool & Can be converted to a command line tool design sketch principle utilize python Of paramiko Library simulation ssh Login operation , And implement tail command Required Library flask.paramiko.gev ...

  7. CentOS6.5 The structures, LAMP+FreeRadius+Daloradius Web Management and TP-LINK Router 、H3C Switch connection , Realization , Online authentication and accounting functions

    What is? RADIUS service : RADIUS:(Remote Authentication Dial In User Service) The Chinese name is remote user dial-up authentication service , abbreviation RADIUS, Is currently the most widely used AAA ...

  8. CentOS6.5 The structures, ftp The server ( Three authentication modes : Anonymous users 、 Local users 、 Virtual user )

    CentOS 6.5 The structures, ftp The server vsftpd(very secure ftp daemon, It's very safe FTP Daemon ) It's one that runs in Linux On the operating system FTP Service program , Not only completely open source but also free , this ...

  9. psdash- For development 、 Testers offer simple methods , stay web Interface to view the operation of the server ( The Internet , bandwidth , disk ,CPU), At the same time, it can be in web Interface to view logs

    psdash yes linux System information web The indicator board is mainly composed of usage data psutil—— Hence the name . github Address :https://github.com/Jahaja/psdash characteristic install Start To configure Screenshot ...

Random recommendation

  1. NOI 4976: COINS

    describe The astronauts Bob One day I came to Mars , He has the habit of collecting coins . So he collected all the coins on Mars , Altogether n Kind of , There's only one of each : The denominations are a1,a2- an. Bob I saw a favorite gift at the airport , I want to buy it ...

  2. Use key Link remote Git Warehouse

    Use the key to access Git Warehouses are much more secure than passwords , Just configure the public key at the remote end , Put the key in ~/.ssh/ Li Yi id_rsa Just name it . But some people have to ask if there are multiple warehouses , And what if you use a different key ? At this time, it can be in ~/.ssh/ file ...

  3. Cow Bowling

    Cow Bowling Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 15585 Accepted: 10363 Descrip ...

  4. CUBRID Learning notes 22 insert data

    CREATE TABLE auto_tbl(id INT AUTO_INCREMENT, name VARCHAR); Self growing columns can be inserted into null, You can insert more than one record at a time . Other and other sql database ...

  5. Reprint :socket.io introduction

    Link to the original text :http://cnodejs.org/topic/50a1fcc7637ffa4155b5a264 I'm using it myself socket.io Development , For documents on the official website , Make a simple arrangement , Then I wrote a simple ...

  6. Objective-c Copy in depth

    The definition of deep and shallow replication : A shallow copy : When copying , For each layer of the copied object, it is pointer copy . Deep copy : When copying , At least one layer of the copied object is object replication . Copy completely : When copying , For each layer of the copied object, it is a full copy . retai ...

  7. MyBatis Study --- Reverse engineering Mybatis Generator Code generation

    [ Catalog ]

  8. php Convert a string to a binary data string

    /** * Convert a string to binary * @param type $str * @return type */ function StrToBin($str){ //1. List each character $arr = pre ...

  9. timing timeit

    python The timer in :timeit timeit Usually used before and after a program time.time(), Then you can get a running time of the program by subtracting , however python Provides a more powerful time library :timeit # guide ...

  10. iphone Click on div A translucent gray background and margin invalid

    -webkit-tap-highlight-color         This property is only used for iOS (iPhone and iPad). When you click on a link or through Javascript When defining clickable elements , It will appear ...