/opt/nginx/sbin/nginx: error while loading shared librari
2017-11-08 14:06
239 查看
问题:
#nginx启动报错
[root@localhost ~]# /opt/nginx/sbin/nginx
/opt/nginx/sbin/nginx: error while loading shared libraries: libGeoIP.so.1: cannot open shared object file: No such file or directory
[root@localhost ~]# cd /opt/
[root@localhost opt]# wget http://geolite.maxmind.com/download/geoip/api/c/GeoIP.tar.gz
[root@localhost opt]# tar zxvf GeoIP.tar.gz
[root@localhost opt]# cd GeoIP-1.4.8/
[root@localhost GeoIP-1.4.8]# ./configure
[root@localhost GeoIP-1.4.8]# make && make install
[root@localhost GeoIP-1.4.8]# /opt/nginx/sbin/nginx -t
/opt/nginx/sbin/nginx: error while loading shared libraries: libGeoIP.so.1: cannot open shared object file: No such file or directory
[root@localhost GeoIP-1.4.8]# locate libGeoIP.so.1
/usr/local/lib/libGeoIP.so.1
/usr/local/lib/libGeoIP.so.1.4.8
[root@localhost GeoIP-1.4.8]# echo "/usr/local/lib" >> /etc/ld.so.conf
[root@localhost GeoIP-1.4.8]# ldconfig
[root@localhost GeoIP-1.4.8]# /opt/nginx/sbin/nginx -t
nginx: the configuration file /opt/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /opt/nginx/conf/nginx.conf test is successful
#nginx启动报错
[root@localhost ~]# /opt/nginx/sbin/nginx
/opt/nginx/sbin/nginx: error while loading shared libraries: libGeoIP.so.1: cannot open shared object file: No such file or directory
[root@localhost ~]# cd /opt/
[root@localhost opt]# wget http://geolite.maxmind.com/download/geoip/api/c/GeoIP.tar.gz
[root@localhost opt]# tar zxvf GeoIP.tar.gz
[root@localhost opt]# cd GeoIP-1.4.8/
[root@localhost GeoIP-1.4.8]# ./configure
[root@localhost GeoIP-1.4.8]# make && make install
[root@localhost GeoIP-1.4.8]# /opt/nginx/sbin/nginx -t
/opt/nginx/sbin/nginx: error while loading shared libraries: libGeoIP.so.1: cannot open shared object file: No such file or directory
[root@localhost GeoIP-1.4.8]# locate libGeoIP.so.1
/usr/local/lib/libGeoIP.so.1
/usr/local/lib/libGeoIP.so.1.4.8
[root@localhost GeoIP-1.4.8]# echo "/usr/local/lib" >> /etc/ld.so.conf
[root@localhost GeoIP-1.4.8]# ldconfig
[root@localhost GeoIP-1.4.8]# /opt/nginx/sbin/nginx -t
nginx: the configuration file /opt/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /opt/nginx/conf/nginx.conf test is successful
相关文章推荐
- /opt/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object
- 执行nginx报错,找不到库./sbin/nginx: error while loading shared libraries: libcrypto.so.6: cannot open share
- 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
- /usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1
- Nginx启动出错 error while loading shared libraries:
- 启动nginx少包:error while loading shared libraries: libssl.so.6
- sqlplus: error while loading shared libraries: /opt/oracle/product/OraHome/lib/libclntsh.so.11.1: ca
- Torque /usr/local/sbin/pbs_mom: error while loading shared libraries: libtorque.so.2: ...
- Nginx 启动出错 error while loading shared libraries: libpcre.so.1
- nginx: error while loading shared libraries: libGeoIP.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
- lsnrctl: error while loading shared libraries: /opt/app/oracle/product/11.2/db_1/lib/libclntsh.so.11
- Torque /usr/local/sbin/pbs_mom: error while loading shared libraries: libtorque.so.2
- ./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.0
- lsnrctl: error while loading shared libraries: /opt/app/oracle/product/11.2/db_1/lib/libclntsh.so.11
- nginx 启动时出现 error while loading shared libraries: libpcre.so.1的错误