nginx运行时报错:error while loading shared libraries: libpcre.so.3

nginx运行时报错:error while loading shared libraries: libpcre.so.3

其实nginx的依赖是很少的了,安装prce(重定向支持)和openssl(https支持,如果不需要https可以不安装。)


[root@localhost release]# ./nginx -p objs/nginx //用srs内置的nginx-1.5.7编译出来有问题,总是找不到libpcre.so.3
./nginx: error while loading shared libraries: libpcre.so.3: cannot open shared object file: No such file or directory
[root@localhost release]# cp /home/www/sbin/nginx . //这是我用的nginx-1.8.1编译出来,可以正常启动。
cp: overwrite `./nginx'? y
[root@localhost release]# ./nginx -p objs/nginx //nginx以前的旧版本是有这个问题,新版本解决了。
[root@localhost release]# 

你可能感兴趣的:(电子商务,流媒体)