专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > Ruby/Rails

起动nginx,报错:error while loading shared libraries: libpcre.so.1

发布时间:2011-06-29 17:45:56 文章来源:www.iduyao.cn 采编人员:星星草
启动nginx,报错:error while loading shared libraries: libpcre.so.1:

[root@webapp92 webapp]# /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

[root@webapp92 webapp]#find / -type f -name "libpcre.so"

/usr/local/lib/libpcre.so.1

 

[root@webapp92 webapp]#export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

[root@webapp92 webapp]#/usr/local/nginx/sbin/nginx

[root@webapp92 webapp]# 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
OK,nginx 已经启动了。。
 

 

---注:需要先切到root下,再去执行
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
启动nginx命令:[root@webapp92 webapp]# /usr/local/nginx/sbin/nginx
关闭nginx命令:[root@webapp92 webapp]# /usr/local/nginx/sbin/nginx -s stop
 
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: