nginx: error while loading shared libraries: libGeoIP.so.1
2015-05-11 22:01
555 查看
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
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
相关文章推荐
- ./nginx: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No
- ./nginx: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No
- nginx 启动时出现 error while loading shared libraries: libpcre.so.1的错误
- Nginx启动错误:error while loading shared libraries: libpcre.so.1
- 启动nginx少包:error while loading shared libraries: libssl.so.6
- Nginx: error while loading shared libraries: libpcre.so.1解决
- Nginx: error while loading shared libraries: libpcre.so.1解决
- 【程序运行时找不到库文件】nginx: error while loading shared libraries: libpcre.so.1
- nginx启动报错 nginx: error while loading shared libraries: libpcre.so.1
- Nginx: error while loading shared libraries: libpcre.so.1解决
- Nginx启动出错 error while loading shared libraries: libpcre.so.1
- Nginx启动错误:error while loading shared libraries: libpcre.so.1
- Tengine/Nginx 启动出错 error while loading shared libraries: libpcre.so.1
- ./nginx: error while loading shared libraries: libpcre.so.1
- Nginx启动出错 error while loading shared libraries:
- /usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1
- Nginx: error while loading shared libraries: libpcre.so.1
- nginx启动报错:/usr/local/nginx/sbin/nginx: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
- 启动nginx 报错 error while loading shared libraries: libpcre.so.1: cannot open shared object file
- 执行nginx报错,找不到库./sbin/nginx: error while loading shared libraries: libcrypto.so.6: cannot open share