安裝GeoIP
yum install GeoIP GeoIP-devel GeoIP-data zlib-devel
下載最新的IP數(shù)據(jù)
mkdir /usr/local/share/GeoIP cd /usr/local/share/GeoIP wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz gunzip GeoIP.dat.gz gunzip GeoLiteCity.dat.gz
安裝 mod_geoip
yum install mod_geoip
修改apache配置
GeoIPEnable On GeoIPDBFile /usr/local/share/GeoIP/GeoIP.dat Standard GeoIPDBFile /usr/local/share/GeoIP/GeoLiteCity.dat Standard
5.檢查
phpinfo();
文章版權(quán)歸作者所有,未經(jīng)允許請勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。
轉(zhuǎn)載請注明本文地址:http://systransis.cn/yun/35861.html
安裝GeoIP yum install GeoIP GeoIP-devel GeoIP-data zlib-devel 下載最新的IP數(shù)據(jù) mkdir /usr/local/share/GeoIP cd /usr/local/share/GeoIP wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoI...
摘要:下安裝的正確姿勢安裝有很多種方式,但是在下如何能夠快速且按照官方標(biāo)準(zhǔn)的安裝呢首先登錄官方網(wǎng)站,點擊右側(cè)菜單,選擇底部對應(yīng)的墻裂建議找到對應(yīng)的操作系統(tǒng),復(fù)制這段代碼。安裝完成后使用和查看對應(yīng)的版本信息和配置信息。 Centos下Nginx安裝的正確姿勢;Nginx安裝有很多種方式,但是在centos下如何能夠快速且按照nginx官方標(biāo)準(zhǔn)的安裝nginx呢? 首先登錄nginx官方網(wǎng)站:h...
閱讀 2367·2021-11-23 09:51
閱讀 1173·2021-11-22 13:52
閱讀 3644·2021-11-10 11:35
閱讀 1265·2021-10-25 09:47
閱讀 3042·2021-09-07 09:58
閱讀 1095·2019-08-30 15:54
閱讀 2849·2019-08-29 14:21
閱讀 3060·2019-08-29 12:20