1.从Nginx官网下载Nginx。目前最新的稳定版为:1.6.2.2.将下载下来的Nginx上传到/opt/nginx目录下。运行“tar-zxvfnginx-1.6.2.tar.gz”进行解压。3.切换到/opt/nginx/nginx-1.6.2目录下,运行./configure进行初始化配置。如出现下面的提示,说明该机器没有安装PCRE,而Nginx需..
分类:
系统相关 时间:
2015-03-13 19:00:27
阅读次数:
166
PCRE(PerlCompatibleRegularExpressions)是一个轻量级的Perl函数库,包括perl兼容的正则表达式库。它比Boost之类的正则表达式库小得多。PCRE十分易用,同时功能也很强大,性能超过了POSIX正则表达式库和一些经典的正则表达式库。1.PCRE目前最新版本为8.36,可以点这里进行下载..
分类:
系统相关 时间:
2015-03-13 19:00:22
阅读次数:
297
问题信息:./nginx:errorwhileloadingsharedlibraries:libpcre.so.1:cannotopensharedobjectfile:Nosuchfileordirectory问题原因:没有安装PCRE库,或安装了PCRE库而没有配置PCRE共享库。解决方案:配置PCRE共享库。1.查找pcre库的位置。[root@server06~]#cd/lib
[root@server0..
分类:
其他好文 时间:
2015-03-13 18:59:16
阅读次数:
128
一:安装Nginx 1,添加一个不能登录且没有主目录的用户: # useradd www -M -s /sbin/nologin(www可以用nginx,说明是nginx用户) 2,必要的组件 # wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcr...
分类:
数据库 时间:
2015-03-10 00:17:23
阅读次数:
317
一.安装makeyum-yinstallgccautomakeautoconflibtoolmake二.安装g++yum-yinstallgccgcc-c++三.安装pcrecd/usr/local/src/用网页打开ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/查看pcre版本wgetftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.35...
分类:
数据库 时间:
2015-03-09 19:21:15
阅读次数:
226
安装环境准备1、GCC编译器 yum install gcc apt-get install gcc2、PCRE library(PERL兼容正则表达式),用于支持正则式 pcre 提供静态或者动态库 pcre-devel 提供开发头文件和源码 yum install pcre p...
分类:
其他好文 时间:
2015-03-04 18:35:02
阅读次数:
157
安装pcretar -xvf pcre-8.32.tar.gzcd pcre-8.32./configuremake;make install安装nginx首先创建一个nginx用户,以nginx用户来运行nginxuseradd nginxtar -xvf nginx-1.2.7.tar.gzcd...
分类:
其他好文 时间:
2015-03-03 13:18:52
阅读次数:
154
一:编译nginx ,并配置Cd /app/pcre-8.12./configureMake && make installCd nginx-1.2.7./configure --prefix=/usr/local/nginx --add-module=/app/ngx_http_consisten...
分类:
其他好文 时间:
2015-02-26 18:13:25
阅读次数:
214
一、安装nginx相对较为简单,安装前确认已经安装了pcre,可通过rpm -q pcre查看本机安装版本。一般安装即可。若无安装直接yum install pcre安装下。
二、下载当前稳定版1.2.7
cd /tmp
wget http://nginx.org/download/nginx-1.2.7.tar.gz
tar -xvf nginx-1.2.7.tar.gz
...
分类:
其他好文 时间:
2015-02-26 10:06:41
阅读次数:
133
./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with n...
分类:
其他好文 时间:
2015-02-20 23:12:56
阅读次数:
299