0
が含まれている私のシステム情報は、次のとおりです。maxminddbモジュール:MaxMind DBファイルは、ここでは、無効なメタデータ
$ apachectl -v
Server version: Apache/2.4.18 (Ubuntu)
Server built: 2016-07-14T12:32:26
$ cat /etc/*release* | grep -i dist
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.1 LTS"
$ uname -r
4.4.0-57-generic
私はmod_maxminddb
をインストールしたいです。 Apacheは商用データベースを使用するように構成されているとき、私は、前提条件としてgeoipupdate
をインストールし、それはgeoliteデータベースが、遵守に、その後のいずれかでコマーシャル一方(using this)
$ ls -l /etc/GeoIP.conf
-rw-r--r-- 1 root root 818 Dec 24 18:29 /etc/GeoIP.conf
$ ls -l /usr/share/GeoIP/
total 0
$ geoipupdate
$ ls -l /usr/share/GeoIP/
total 187444
-rw-r--r-- 1 root root 112192399 Dec 24 18:46 GeoIP2-City.mmdb
-rw-r--r-- 1 root root 3012279 Dec 24 18:46 GeoIP2-Country.mmdb
-rw-r--r-- 1 root root 47721533 Dec 24 18:46 GeoIPCity.dat
-rw-r--r-- 1 root root 1699494 Dec 24 18:45 GeoIP.dat
-rw-r--r-- 1 root root 4189407 Dec 24 18:45 GeoIPISP.dat
-rw-r--r-- 1 root root 4299547 Dec 24 18:45 GeoLiteASNum.dat
-rw-r--r-- 1 root root 17760694 Dec 24 18:45 GeoLiteCity.dat
-rw-r--r-- 1 root root 1054583 Dec 24 18:45 GeoLiteCountry.dat
ないだけを含むように構成され、mod_maxminddb
をインストールし、そして、次のエラーが
$ apachectl -M
AH00526: Syntax error on line 12 of /etc/apache2/mods-enabled/maxminddb.conf:
MaxMindDBFile: Failed to open /usr/share/GeoIP/GeoIPCity.dat: The MaxMind DB file contains invalid metadata
を投げたが、それは
ない Apacheがgeoliteデータベースを使用するように設定された場合です。
'.mmdb'ファイルはgeolite(バージョンに関係なく)データベースですが、私が購入した商用のものを使いたいと思います。何か案が? – MrRoth
'GeoIP2-City.mmdb'はGeoIP2市の商用データベースで、名前を変更しなかったものとします。 GeoLiteデータベースの名前は 'GeoLite2-City.mmdb'です。 'dat'ファイルはこのモジュールでは動作しません。 –
私は2つの間で混乱していると思います。 '.mmdb'が商用のものなら、私は満足しています。 – MrRoth