maptail
maptail的原理是基于node.js, 通过调用WEB服务器访问日志实时打印访问信息. 注:下面node是基于源码编译安装.并依赖python2.6~2.7版本,如果python是2.6以上版本无需再安装. 软件包下载地址: maptail:https://github.com/stagas/maptail/ node:http://nodejs.o
maptail的原理是基于node.js, 通过调用WEB服务器访问日志实时打印访问信息.
注:下面node是基于源码编译安装.并依赖python2.6~2.7版本,如果python是2.6以上版本无需再安装.
软件包下载地址:
maptail:https://github.com/stagas/maptail/
node:http://nodejs.org
一、安装node
<code class="bash">#wget http://nodejs.org/dist/v0.10.0/node-v0.10.0.tar.gz#tar zxvf node-v0.10.0.tar.gz#cd node-v0.10.0#./configure#make && make install</code>
二、安装maptail
解压出来就可以了,无需编译安装.
<code class="bash">#wget https://github.com/stagas/maptail/archive/master.zip#unzip master.zip#mv maptail-master /usr/local/maptail</code>
三、安装其它依赖包
运行maptail报以下错误安装以下依赖包:
Error: Cannot find module 'geoip-lite-with-city-data'
Error: Cannot find module 'express'
Error: Cannot find module 'simpl'
<code class="bash">#cd /usr/local/maptail/bin#npm install geoip-lite#npm install express#npm install simpl</code>
修改maptail.js.
<code class="bash">#cd /usr/local/maptail/lib#vi maptail.js</code>
将geoip-lite-with-city-data改为geoip-lite
四、下载数据文件
<code class="bash">#cd /usr/local/maptail/node_modules/geoip-lite/data#wget https://github.com/bluesmoon/node-geoip/blob/master/data/geoip-city-names.dat#wget https://github.com/bluesmoon/node-geoip/blob/master/data/geoip-city.dat</code>
五、运行maptail
<code class="bash">#cd /usr/local/maptail/bin#nohup tail -fn 20 /htdocs/logs/access.log | ./maptail -h 192.168.1.1 -p 8080 &</code>
访问:http://192.168.1.1:8080
注:/htdocs/logs/access.log为站点访问日志文件.

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Analysis of the role and principle of nohup In Unix and Unix-like operating systems, nohup is a commonly used command that is used to run commands in the background. Even if the user exits the current session or closes the terminal window, the command can still continue to be executed. In this article, we will analyze the function and principle of the nohup command in detail. 1. The role of nohup: Running commands in the background: Through the nohup command, we can let long-running commands continue to execute in the background without being affected by the user exiting the terminal session. This needs to be run

Principle analysis and practical exploration of the Struts framework. As a commonly used MVC framework in JavaWeb development, the Struts framework has good design patterns and scalability and is widely used in enterprise-level application development. This article will analyze the principles of the Struts framework and explore it with actual code examples to help readers better understand and apply the framework. 1. Analysis of the principles of the Struts framework 1. MVC architecture The Struts framework is based on MVC (Model-View-Con

MyBatis is a popular Java persistence layer framework that is widely used in various Java projects. Among them, batch insertion is a common operation that can effectively improve the performance of database operations. This article will deeply explore the implementation principle of batch Insert in MyBatis, and analyze it in detail with specific code examples. Batch Insert in MyBatis In MyBatis, batch Insert operations are usually implemented using dynamic SQL. By constructing a line S containing multiple inserted values

MyBatis is an excellent persistence layer framework. It supports database operations based on XML and annotations. It is simple and easy to use. It also provides a rich plug-in mechanism. Among them, the paging plug-in is one of the more frequently used plug-ins. This article will delve into the principles of the MyBatis paging plug-in and illustrate it with specific code examples. 1. Paging plug-in principle MyBatis itself does not provide native paging function, but you can use plug-ins to implement paging queries. The principle of paging plug-in is mainly to intercept MyBatis

The chage command in the Linux system is a command used to modify the password expiration date of a user account. It can also be used to modify the longest and shortest usable date of the account. This command plays a very important role in managing user account security. It can effectively control the usage period of user passwords and enhance system security. How to use the chage command: The basic syntax of the chage command is: chage [option] user name. For example, to modify the password expiration date of user "testuser", you can use the following command

Interpretation of the principles and implementation methods of the Struts2 framework Introduction: Struts2, as a popular MVC (Model-View-Controller) framework, is widely used in JavaWeb development. It provides a way to separate the web layer from the business logic layer and is flexible and scalable. This article will introduce the basic principles and implementation methods of the Struts2 framework, and provide some specific code examples to help readers better understand the framework. 1. Framework Principle: St

The RPM (RedHatPackageManager) tool in Linux systems is a powerful tool for installing, upgrading, uninstalling and managing system software packages. It is a commonly used software package management tool in RedHatLinux systems and is also used by many other Linux distributions. The role of the RPM tool is very important. It allows system administrators and users to easily manage software packages on the system. Through RPM, users can easily install new software packages and upgrade existing software

Table of Contents Astar Dapp Staking Principle Staking Revenue Dismantling of Potential Airdrop Projects: AlgemNeurolancheHealthreeAstar Degens DAOVeryLongSwap Staking Strategy & Operation "AstarDapp Staking" has been upgraded to the V3 version at the beginning of this year, and many adjustments have been made to the staking revenue rules. At present, the first staking cycle has ended, and the "voting" sub-cycle of the second staking cycle has just begun. To obtain the "extra reward" benefits, you need to grasp this critical stage (expected to last until June 26, with less than 5 days remaining). I will break down the Astar staking income in detail,
