StudyRoom/Linux_Server
GeoIP 데이터 업데이트
REZARD
2011. 1. 5. 15:38
최신 버전 데이터는 아래 주소에서 받을 수 있다.
http://geolite.maxmind.com/download/geoip/database/
서버에서는
[root@ns ~] wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
[root@ns ~] gzip -d GeoIP.dat.gz
[root@ns ~] ll
-rw-r--r-- 1 root root 1115248 1월 4 01:16 GeoIP.dat
[root@ns ~] mv GeoIP.dat /var/geoip/
이렇게 하면 기존 파일을 덮어씌우기 하면서 업데이트가 끝난다.