리눅스
[기타] GeoIP database update
변군이글루
2017. 4. 6. 13:29
반응형
GeoIP database update
1. GeoIP 데이터베이스 디렉터리로 이동
sudo mkdir -p /usr/share/GeoIP
2. GeoIP 데이터베이스 다운로드
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz \
-O /usr/share/GeoIP/GeoIP.dat.gz
3. GeoIP 데이터베이스 파일 압축 해제
압축 파일(GeoIP.dat.gz)을 /usr/share/GeoIP 디렉터리로 이동하고 압축을 해제합니다.
cd /usr/share/GeoIP
gzip -d GeoIP.dat.gz
압축 해제 후 GeoIP.dat 파일이 /usr/share/GeoIP 디렉터리에 존재해야 합니다.
$ ls
GeoIP-initial.dat GeoIP.dat GeoIPv6-initial.dat GeoIPv6.dat
728x90
반응형