Linux

GeoIP 설치

techapi 2025. 3. 10. 13:35
반응형

버젼은 좀 오래 되었는데, 

높은 버젼이 필요한 경우, url 참고하여 진행 가능합니다.

 

http://mirror.xmission.com/salix/x86_64/

 

Index of /salix/x86_64/

 

mirror.xmission.com

 

wget ftp://mirror.xmission.com/salix/x86_64/14.1/source/l/GeoIP/GeoIP-1.5.1.tar.gz

 

tar -zxvf GeoIP-1.5.1.tar.gz

 

cd /usr/local/src/GeoIP-1.5.1/

./configure --prefix=/usr/local/GeoIP --sysconfdir=/etc

make ; make install

 

ll /usr/local/GeoIP/share/GeoIP/GeoIP.dat

cd /usr/local/GeoIP/share/GeoIP/

 

wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz; gunzip -f -d GeoIP.dat.gz; rm -f GeoIP.dat.gz

 

cd /usr/local/src/

wget http://geolite.maxmind.com/download/geoip/api/mod_geoip2/mod_geoip2_1.2.5.tar.gz

tar -zxvf mod_geoip2_1.2.5.tar.gz

 

cd /usr/local/src/mod_geoip2_1.2.5

/usr/local/apache/bin/apxs -i -a -L/usr/local/GeoIP/lib -I/usr/local/GeoIP/include -lGeoIP -c mod_geoip.c

 

 

 

반응형

'Linux' 카테고리의 다른 글

java / Tomcat / Connector 설치  (0) 2025.03.10
ssl 설치  (0) 2025.03.10
local disk 추가  (0) 2025.03.10
firewalld 설치, 관리  (0) 2025.03.09
iptables 설정 (2/2)  (0) 2025.03.09