YUMSERV
Published 2022. 5. 24. 21:54
[GeoIP] dat 파일로 변환 LINUX/WEB
반응형

dat파일은 이전에 사용하는 파일형식이며, 현재는 csv이나 mmdb 형식에 파일을 이용하여 geoip 데이터베이스를 사용합니다.

* CSV 파일을 dat 파일로 변환하는 방식

 

maxmind에서 GeoLite2-Country-CSV.zip 파일 다운로드 받은 상태에서 진행합니다.

git clone https://github.com/sherpya/geolite2legacy.git
cd geolite2legacy
python geolite2legacy.py --input-file GeoLite2-Country-CSV_20220419.zip --fips-file geoname2fips.csv --output-file GeoIP.dat

 

 

참고)

https://github.com/sherpya/geolite2legacy

 

GitHub - sherpya/geolite2legacy: MaxMind GeoLite2 (CSV) to Legacy format converter

MaxMind GeoLite2 (CSV) to Legacy format converter. Contribute to sherpya/geolite2legacy development by creating an account on GitHub.

github.com

 

반응형
profile

YUMSERV

@lena04301

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!