当前位置:首页 > 服务器技术 > nginx

Ubuntu140464安装nginx之缺少libpcreso1

安装步骤同12.04

在64位机子上安装nginx以后,运行时提示:

Ubuntu140464安装nginx之缺少libpcreso1 - 文章图片

我们安装pere库以后,这个文件在 cd /usr/local/lib/这个目录下,

网上有人说对于64位的机子来说要创建软链接:

<spanCourier New',Courier,mono,serif; line-height:18px; background-color:rgb(245,250,226)">sudo ln -s /usr/local/lib/libpcre.so.1 /lib64 (64位库)

<spanCourier New',Courier,mono,serif; line-height:18px; background-color:rgb(245,250,226)">但是还是不行,于是在 /lib (32位库)下创建链接

<spanCourier New',Courier,mono,serif; line-height:18px; background-color:rgb(245,250,226)"><spanCourier New',Courier,mono,serif; line-height:18px; background-color:rgb(245,250,226)">sudo ln -s /usr/local/lib/libpcre.so.1 /lib

<spanCourier New',Courier,mono,serif; line-height:18px; background-color:rgb(245,250,226)"><spanCourier New',Courier,mono,serif; line-height:18px; background-color:rgb(245,250,226)">然后运行:cd /usr/local/nginx/sbin/

<spanCourier New',Courier,mono,serif; line-height:18px; background-color:rgb(245,250,226)"><spanCourier New',Courier,mono,serif; line-height:18px; background-color:rgb(245,250,226)">sudo ./nginx

<spanCourier New',Courier,mono,serif; line-height:18px; background-color:rgb(245,250,226)"><spanCourier New',Courier,mono,serif; line-height:18px; background-color:rgb(245,250,226)">sudo netstat -ntlp

<spanCourier New',Courier,mono,serif; line-height:18px; background-color:rgb(245,250,226)"><spanCourier New',Courier,mono,serif; line-height:18px; background-color:rgb(245,250,226)">出现:Ubuntu140464安装nginx之缺少libpcreso1 - 文章图片

版权声明:本文为博主原创文章,未经博主允许不得转载。

以上就介绍了Ubuntu1404 64 安装nginx之 缺少 libpcreso1,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!