网络营销电子商务研究中心  
How to buy the best prescription safety glasses in Canada? Let's study!
Go Back   网络营销电子商务研究中心 > 服务器与数据库 > 服务器环境搭建
User Name
Password
 
FAQ Members List Calendar Cheap Glasses

服务器环境搭建 Windows,Linux,IIS,Apache等服务器配置、安全维护以及PHP和MYSQL运行环境讨论。

Reply
 
Thread Tools Display Modes
  #1   IP: 153.99.90.120
Old 2016-06-02, 10:29 PM
Harrellsville Harrellsville is offline
初级会员
 
Join Date: 2011-03-14
Posts: 1
Harrellsville 现在声名狼藉
Default nginx error while loading shared libraries: libpcre.so.1:

linux 64位安装nginx后启动出错报以下错误

[root@localhost nginx-1.3.0]# /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 nginx-1.3.0]# ldd $(which /usr/local/nginx/sbin/nginx)
linux-vdso.so.1 => (0x00007fff4d5ff000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fea7e357000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fea7e120000)
libpcre.so.1 => not found
libz.so.1 => /lib64/libz.so.1 (0x00007fea7df09000)
libc.so.6 => /lib64/libc.so.6 (0x00007fea7db76000)
/lib64/ld-linux-x86-64.so.2 (0x00007fea7e57d000)
libfreebl3.so => /lib64/libfreebl3.so (0x00007fea7d913000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fea7d70f000)

可以看出 libpcre.so.1 => not found 并没有找到,进入/lib64目录中手动链接下

[root@localhost /]# cd lib64/
[root@localhost lib64]# ln -s libpcre.so.0.0.1 libpcre.so.1

然后启动nginx就ok了
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off

Forum Jump

Prescription-glasses.com offers prescription glasses online at discount prices.
All times are GMT +8. The time now is 10:46 AM.


Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.