Centos real-time access tool MapTail platform construction

Source: Internet
Author: User
Tags install node
Preface * in the LinuxTone group, I occasionally heard that the maptail interface is very dazzling. here is the actual address workshop,

Preface * occasionally heard in the LinuxTone group that maptail interface is very dazzling, here there are actual address http://view.linuxtone.org/, its principle is based on nodejs, then, the WEB server access log is called to print the access information in real time, similar to tail-fn 100/data/logs/nginx/access. log, and then provide web access.

I. installation environment

System version: CentOS x86_64 Node version: node-v0.8.16 Maptail version: maptail-0.1.10


II. formal installation

# Download node, maptail corresponding version, as follows: cd/tmp wget-c https://github.com/stagas/maptail/archive/master.zip wget-c http://nodejs.org/dist/v0.8.16/node-v0.8.16-linux-x64.tar.gz # unzip maptail: unzip master # unzip install node: tar xzf node-v0.8.16-linux-x64.tar.gz # enter the/tmp/maptail-master Directory, execute the following command to install the maptail dependency package such as: (the installation process speed has a great relationship with your own network speed, because the installer will automatically go to the network speed to download the relevant dependent package, after the installation is completed, the program will automatically end) # execute the command as follows:/tmp/node-v0.8.16-linux-x64/bin/npm install
 
3. start MapTail

# After the above installation is complete, set the maptail permission cd/tmp/maptail-master/bin & chmod o + x maptail # Start the maptail service in the background, view the path of web server logs based on tail # maptail listens to port 8080 of the local IP address and accesses maptail from http: // 192.9.117.160: 8080 nohup tail-fn 20/usr/local/nginx/logs/access. log |. /maptail-h 192.9.117.160-p 8080 & # The final installation is complete, as shown in figure
 
Since then, maptail has been set up in a simple and in-depth manner. You are welcome to discuss and discuss it together!
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.