BLOG.REZARD.COM ≫ Linux Command TIP Project ≫ Interest

'StudyRoom/Linux_Server'에 해당되는 글 11건

  1. GeoIP 데이터 업데이트

GeoIP 데이터 업데이트

StudyRoom/Linux_Server

최신 버전 데이터는 아래 주소에서 받을 수 있다.

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/

이렇게 하면 기존 파일을 덮어씌우기 하면서 업데이트가 끝난다.