/application/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory

[root@localhost nginx-1.8.1]# find / -name libpcre.so*
/lib64/libpcre.so.0
/lib64/libpcre.so.0.0.1
/home/tiance/tools/pcre-8.37/.libs/libpcre.so
/home/tiance/tools/pcre-8.37/.libs/libpcre.so.1.2.5
/home/tiance/tools/pcre-8.37/.libs/libpcre.so.1
/usr/local/lib/libpcre.so
/usr/local/lib/libpcre.so.1.2.5
/usr/local/lib/libpcre.so.1
[root@localhost nginx-1.8.1]# vi /etc/ld.so.conf

include ld.so.conf.d/*.conf
/usr/local/lib

ldconfig //使生效

发表评论

电子邮件地址不会被公开。 必填项已用*标注