Nginx启动出错 error while loading shared libraries
来源:互联网 发布:论坛cms 编辑:程序博客网 时间:2024/05/07 04:00
http://www.cnblogs.com/wenanry/archive/2012/04/16/2451881.html
在centos5.7 32位上编译安照 nginx-1.1.16 出错
[root@localhost conf]# /usr/local/nginx/sbin/nginx
/usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
从错误看出是缺少lib文件导致,进一步查看下
[root@localhost conf]# ldd $(which /usr/local/nginx/sbin/nginx)
linux-gate.so.1 => (0x0071b000)
libpthread.so.0 => /lib/libpthread.so.0 (0×00498000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0×00986000)
libpcre.so.1 => not found
libcrypto.so.6 => /lib/libcrypto.so.6 (0×00196000)
libz.so.1 => /lib/libz.so.1 (0×00610000)
libc.so.6 => /lib/libc.so.6 (0x002d7000)
/lib/ld-linux.so.2 (0x006a8000)
libdl.so.2 => /lib/libdl.so.2 (0x008c3000)
可以看出 libpcre.so.1 => not found 并没有找到,进入/lib目录中手动链接下
[root@localhost lib]# ln -s libpcre.so.0.0.1 libpcre.so.1
然后在启动nginx ok 了
[root@localhost lib]# /usr/local/nginx/sbin/nginx
[root@localhost lib]# ps -ef |grep nginx
root 9539 1 0 19:06 ? 00:00:00 nginx: master process /usr/local/nginx/sbin/nginx
www 9540 9539 0 19:06 ? 00:00:00 nginx: worker process
- Nginx启动出错 error while loading shared libraries
- Nginx启动出错 error while loading shared libraries: libpcre.so.1
- Tengine/Nginx 启动出错 error while loading shared libraries: libpcre.so.1
- nginx启动报错 nginx: error while loading shared libraries: libpcre.so.1
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- 每个单位都有三种人
- 企业没“文化”很可怕
- motorola 扫描头相关解释
- Android中Bitmap内存优化
- 大数据实验数据集何处来?
- Nginx启动出错 error while loading shared libraries
- select中case when的使用
- VC++
- Android滑动菜单框架完全解析,教你如何一分钟实现滑动菜单特效
- Web系统框架
- jsp为什么得不到servlet传来的参数
- EL表达式中使用三目运算符在Tomcat不同版本中的表现
- 47-超链接按钮
- View的常用方法,以及最重要的三个方法。