Nginx启动提示找不到libpcre.so.1解决方法

来源:互联网 发布:淘宝爱奇艺会员店铺 编辑:程序博客网 时间:2024/05/21 09:56

原文地址:http://www.qttc.net/201208194.html

启动nginx提示:error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory,意思是找不到libpcre.so.1这个模块,而导致启动失败。

[root@lee ~]# /usr/local/webserver/nginx/sbin/nginxnginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file:No such file or directory

经过搜索资料,发现部分linux系统存有的通病。要解决这个方法非常容易

如果是32位系统

[root@lee ~]#  ln -s /usr/local/lib/libpcre.so.1 /lib

如果是64位系统

[root@lee ~]#  ln -s /usr/local/lib/libpcre.so.1 /lib64

然后在启动nginx就OK了

[root@lee ~]# /usr/local/webserver/nginx/sbin/nginx


阅读全文
0 0
原创粉丝点击