一叶知秋.

业精于勤,荒于嬉;行成于思,毁于随。

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

环境:
centos 6.0 64位
nginx:1.12.2
问题:找不到libpcre.so.1
问题截图:

解决办法:
1.查找libpcre.so.1文件的位置

find / -name "libpcre.so.1

2.将/usr/local/lib重定向到/etc/ld.so.conf文件中

echo "/usr/local/lib" >> /etc/ld.so.conf
#立即生效
ldconfig

posted @ 2020-08-18 16:36  ccku  阅读(1341)  评论(0编辑  收藏  举报