There is a GoAccess log analysis tool (installation method) in front of the old left, and you need to use the installation support Library before installing the tool, where you need Geo-IP, it is mainly used to analyze the countries and regions of log users. In general, direct yum installation can be achieved, but some default systems do not have the Geo-IP library file, we need to compile and install it separately, or the log analysis is incomplete.
1. Download the desired file
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
2. Decompress, compile, and install
Tar xzvf GeoIP-1.4.6.tar.gz
Cd GeoIP-1.4.6
./Configure & make install
Mv GeoIP.dat.gz/usr/local/share/GeoIP/
In this way, we can install and support the Geo-IP library file, and then deploy the required software functions.