≡ Menu

Shell Script To Update MaxMind GeoIP Database

First, you need to install MaxMind C Api including geoipupdate utility.

Second, configure /usr/local/etc/GeoIP.conf file with your LicenseKey, UserId and ProductIds. A sample config file:

Put the following script at – /etc/cron.monthly/updategeoip.sh (cron job)

{ 4 comments… add one }
  • Mould Maker April 27, 2011, 2:27 am

    So, how to get the License Key & Product Id ?

    • Vivek Gite April 6, 2012, 6:09 pm

      You can order it from the maxmind site only.

  • Juan Giordana February 19, 2010, 4:01 pm

    There’s a typo on the first nginx (nginix).

    • Vivek Gite April 6, 2012, 6:09 pm

      Thanks for the heads up!

Security: Are you a robot or human?

Leave a Comment