Lao Zuo has a GoAccess log analysis tool in front( Installation method ), and the installation support library is needed before installing the tool, which requires Geo-IP , which is mainly used to analyze the countries and regions of log users. Generally speaking, direct yum installation is possible, but some default systems do not have Geo-IP library files, so we need to compile and install them separately, or log analysis is incomplete.
First, download the required files
cd /usr/local/src
wget http://geolite.maxmind.com/download/geoip/api/c/GeoIP-1.4.6.tar.gz
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
Second, decompress, compile and install
tar xzvf GeoIP-1.4.6.tar.gz
cd GeoIP-1.4.6
./configure && make && make install
mv GeoIP.dat.gz /usr/local/share/GeoIP/
In this way, we can complete the installation support of Geo-IP library files, and then implement the software function deployment we need.
Scan the code to follow the official account
Get more news about webmaster circle!
Entrepreneurship, operation and new knowledge