本方来自:http://www.wangzhibo.com/windows_linux/969.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常见的错误和解决方法,1、Nginx 常见...启动时如果报异常error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory 这说明我们的环境还不是和启动需要
libssl.so.10缺失库文件的解决办法,error while loading shared libraries :libssl.so.10:cannot open shared object file:No such file or directory
error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory [root@SnsWeb ~]# /usr/local/mongodb/bin/mongod --dbpath=/usr/local/mongodb/data --log...
centos6 pcre库
nginx+redis+tomcat分布式负载均衡遇到问题解决文档;部署nginx、redis、tomcat时出现的一些常见问题解决方式 ex:Nginx启动错误:error while loading shared libraries: libpcre.so.1
本文档详细说明了安装nginx所需要的依赖包的安装流程及可能遇到的问题,如:error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory
libpcre2-8.so.0.5.0,nginx1.24.0版本在centos7离线部署时,需要该依赖
nginx-1.8.0-1.el6.ngx.x86_64.rpm libpcre.so.0()(64bit) 被 nginx-1.18.0-1.el6.ngx.x86_64 需要
linux rpm安装nginx1.24版本依赖时会报缺少该依赖libpcre2-8.so.0.0错误,把libpcre2-8.so.0.5.0文件放到服务器的/usr/lib64下,在该目录/usr/lib64给依赖创建一个软链接: ln -s libpcre2-8.so.0.5.0 libpcre2-8.so...
CentOS下nginx服务安装包,直接yum即可完成安装。Nginx (engine x) 是一个高性能的HTTP和web服务器,同时也提供了IMAP/POP3/SMTP服务。Nginx是由伊戈尔·赛索耶夫为俄罗斯访问量第二的Rambler.ru站点(俄文:Рам...
CentOS下nginx服务安装包,直接yum即可完成安装。Nginx (engine x) 是一个高性能的HTTP和web服务器,同时也提供了IMAP/POP3/SMTP服务。Nginx是由伊戈尔·赛索耶夫为俄罗斯访问量第二的Rambler.ru站点(俄文:Рам...
2023年5月26日,当前最新稳定版本nginx 1.24.0 已开启ipv6支持 二进制rpm包 适用于centos7 redhat 7系列的操作系统使用 适用于x86架构 主要修复安全漏洞、升级更新nginx版本,增强web服务器安全性
很难找的 centos7 nginx-1.6.2-1.el7.centos.ngx.x86_64.rpm 包
小白式操作,使用 dockerfile 一键配置 nginx:1.12.0+php:7.2.28+mysql5.7,妈妈再也不用担心我装不来环境了
这是nginx安装时需要的文件之一nginx.conf
linux下的nginx--rpm安装包
使用c#将aj-report桌面化:2.c#桌面程序合成nginx
(1)首先修改nginx-service.xml,把里面nginx的位置信息改为你的nginx信息,我这里nginx是直接解压到D盘,如果放在其他位置,替换掉D:\nginx为相应的位置即可,共5处。 <id>nginx <name>Nginx Service ...
nginx官网不再更新centos6版,此rpm构建于nginx最新稳定版1.24.0