wget http://geolite.maxmind.com/download/geoip/api/c/GeoIP.tar.gz

wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz

wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz

# tar xzvf GeoIP.tar.gz

# cd GeoIP-1.4.8

# ./configure

# make && make install

# nginx -t
nginx: error while loading shared libraries: libGeoIP.so.1: cannot open shared object file: No such file or directory

# locate libGeoIP.so.1
-bash: locate: command not found

yum -y install mlocate
-------------------------------

# locate libGeoIP.so.1
locate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory

updatedb
-------------------------------

# locate libGeoIP.so.1
/root/GeoIP-1.4.8/libGeoIP/.libs/libGeoIP.so.1
/root/GeoIP-1.4.8/libGeoIP/.libs/libGeoIP.so.1.4.8
/usr/local/lib/libGeoIP.so.1
/usr/local/lib/libGeoIP.so.1.4.8

# echo"/usr/local/lib" >> /etc/ld.so.conf
# ldconfig

# nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful

最新文章

  1. 构建ASP.NET MVC4+EF5+EasyUI+Unity2.x注入的后台管理系统(16)-权限管理系统-漂亮的验证码
  2. 夏夏的php开发笔记开写啦
  3. git/github学习笔记
  4. 用CorelDRAW等分分割图片的方法
  5. WPF DataGrid常用属性记录
  6. codeforces 706D (字典树)
  7. Effective Java 03 Enforce the singleton property with a private constructor or an enum type
  8. POJ 1556 The Doors(线段交+最短路)
  9. Android-给另一个Activity传递HashMap
  10. cocos2d-x 3.0环境搭建
  11. 音频播放AVFoundation框架
  12. rsync使用说明
  13. DIV撑开
  14. [Angular Tutorial] 3-Components
  15. 导出jqgrid表格数据为EXCEL文件,通过tableExport.js插件。
  16. 群等变网络的pytorch实现
  17. [No0000C7]windows 10桌面切换快捷键,win10
  18. rar压缩类
  19. 把旧系统迁移到.Net Core 2.0 日记(2) - 依赖注入/日志NLog
  20. 第9月第7天 uicollectionview

热门文章

  1. The bean 'xxx' could not be injected as a 'xxx'because it is a JDK dynamic proxy that implements
  2. C#中二进制,八进制,十六进制到十进制的相互转换
  3. 记事本中写c/c++程序在Windows下运行
  4. Surrounded Regions 包围区域——dfs
  5. LeetCode – Copy List with Random Pointer
  6. SpringMVC:JSON
  7. java web 站点头像上传处理 (springmvc +bootstrap+cropper)
  8. NAT和桥接的区别
  9. Struts2使用POI创建Excel并下载
  10. kubernetes调度之资源耗尽处理配置