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!