Nginx启动错误:error while loading shared libraries: libpcre.so.0
Posted 太白的技术博客
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Nginx启动错误:error while loading shared libraries: libpcre.so.0相关的知识,希望对你有一定的参考价值。
今天测试的时候,启动一个其他机器预编译好的nginx到目标测试机器(OEL 7.4)启动的时候,报了下列错误:
/usr/
local
/nginx/sbin/nginx: error
while
loading shared libraries: libpcre.so.0: cannot
open
shared object
file
: No such
file
or directory
经查,OEL 7.4版本下/lib64下没有libpcre.so.0这个共享库,故创建一个到libpcre.so的符号链接,再次启动,问题解决。
以上是关于Nginx启动错误:error while loading shared libraries: libpcre.so.0的主要内容,如果未能解决你的问题,请参考以下文章
解决软件启动报error while loading shared libraries: libgd.so.2: cannot open shared object错误
nginx: error while loading shared libraries: libluajit-5.1.so.2: cannot open shared object file: No
nginx: error while loading shared libraries: libluajit-5.1.so.2: cannot open shared object file: No
Nginx 启动报错 (nginx: error while loading shared libraries: XXX: cannot open shared object file: No suc
nginx error: upstream prematurely closed connection while reading response header from upstream(示例代码