nginx: error while loading shared libraries: libGeoIP.so.1
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
最新文章
- 构建ASP.NET MVC4+EF5+EasyUI+Unity2.x注入的后台管理系统(16)-权限管理系统-漂亮的验证码
- 夏夏的php开发笔记开写啦
- git/github学习笔记
- 用CorelDRAW等分分割图片的方法
- WPF DataGrid常用属性记录
- codeforces 706D (字典树)
- Effective Java 03 Enforce the singleton property with a private constructor or an enum type
- POJ 1556 The Doors(线段交+最短路)
- Android-给另一个Activity传递HashMap
- cocos2d-x 3.0环境搭建
- 音频播放AVFoundation框架
- rsync使用说明
- DIV撑开
- [Angular Tutorial] 3-Components
- 导出jqgrid表格数据为EXCEL文件,通过tableExport.js插件。
- 群等变网络的pytorch实现
- [No0000C7]windows 10桌面切换快捷键,win10
- rar压缩类
- 把旧系统迁移到.Net Core 2.0 日记(2) - 依赖注入/日志NLog
- 第9月第7天 uicollectionview
热门文章
- The bean 'xxx' could not be injected as a 'xxx'because it is a JDK dynamic proxy that implements
- C#中二进制,八进制,十六进制到十进制的相互转换
- 记事本中写c/c++程序在Windows下运行
- Surrounded Regions 包围区域——dfs
- LeetCode – Copy List with Random Pointer
- SpringMVC:JSON
- java web 站点头像上传处理 (springmvc +bootstrap+cropper)
- NAT和桥接的区别
- Struts2使用POI创建Excel并下载
- kubernetes调度之资源耗尽处理配置