آپدیت GepIP

All posts tagged آپدیت GepIP

hostripples-geoip.png

نحوه آپدیت GeoIP در centos لینوکس

سلام خدمت وبمسترا گرامی

اسکریپت زیر را آماده کرده ام تا با ساخت کرون جاب همیشه از آپدیت بودن GeoIP اطمینان کسب کنید.

#!/bin/bash

cd /usr/share/geoip
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz || { echo 'Could not download GeoLiteCountry, exiting.' ; exit 1; }
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz || { echo 'Could not download GeoLiteCity, exiting.' ; exit 1; }
gunzip -f GeoIP.dat.gz
gunzip -f GeoLiteCity.dat.gz
echo "y"|mv GeoLiteCity.dat GeoIPCity.dat

ادامه مطلب

محمد علی پور فتحکوهینحوه آپدیت GeoIP در centos لینوکس