How to compile and install the Geo-IP support library software in CentOS

Source: Internet
Author: User
Tags geoip centos maxmind

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.