Focus on cloud service provider activities
Notes on website operation and maintenance

Compile and install Geo-IP support library software separately for CentOS system

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.

Domain name host preferential information push QQ group: six hundred and twenty-seven million seven hundred and seventy-five thousand four hundred and seventy-seven Get preferential promotion from merchants.
Like( zero )
Do not reprint without permission: Lao Zuo's Notes » Compile and install Geo-IP support library software separately for CentOS system


Scan the code to follow the official account

Get more news about webmaster circle!
Entrepreneurship, operation and new knowledge