1.什么是Nginx的Rewrite规则?Rewrite主要的功能就是实现URL的重写,Nginx的Rewrite规则采用PCRE(PerlCompatible Regular Expressions)Perl兼容正则表达式的语法进行规则匹配,如果您需要Nginx的Rewrite功能,在编译Ngin...
分类:
其他好文 时间:
2015-07-11 20:03:56
阅读次数:
103
《PHP扩展学习系列》系列技术文章整理收藏 ? 1PHP扩展之文本处理(二)——PCRE正则表达式语法10——后向引用 http://www.lai18.com/content/321526.html 2PHP扩展之文本处理(二)——PCRE正则表达式语法9——重...
分类:
Web程序 时间:
2015-07-11 13:45:12
阅读次数:
178
gcc 4.8中已经包含了std regex的头文件可是没有实现,所以链接是失败的gcc 4.9完整的支持了c++ 11的regex。在4.9以前,可以寻求boost的regex。不过,我更熟悉pcre,基于perl的正则表达式的实现。下载源码,解压将库配置为交叉编译,只生成静态库,配置pcre代码...
分类:
其他好文 时间:
2015-07-09 17:50:21
阅读次数:
176
要使用GeoIP,需要重新编译Nginx,我的系统是centos6.5,nginx用的是tengine,需要的软件包:gcc、gcc-c++、 openssl、 openssl-devel、geoIP library、GeoLite Country、GeoLite City、pcre、tengine...
分类:
其他好文 时间:
2015-07-08 10:55:18
阅读次数:
392
安装nginx前面必须安装pcre,zlib和ssl
1.安装pcre
首先下载pcre,地址是:http://nchc.dl.sourceforge.net/project/pcre/pcre2/10.20/pcre2-10.20.tar.bz2tar -xvf pcre2-10.20.tar.bz2
cd pcre2-10.20
sudo ./configure
sudo make
sudo...
分类:
系统相关 时间:
2015-07-07 17:17:07
阅读次数:
272
运行环境:系统环境#uname-srLinux2.6.32-504.16.2.el6.centos.plus.x86_64#cat/etc/issueCentOSrelease6.6(Final)Apache:httpd-2.4.12svn:subversion-1.8.13MySQL相关:mariadb-10.0.17-linux-x86_64mod_auth_mysql-3.0.0其他依赖环境pcre-8.37serf-1.3.8scons-2.3.4sqlite-au..
分类:
数据库 时间:
2015-07-06 20:09:38
阅读次数:
237
一?简介 安装使用centos?5.10? Master?192.168.235.135 Slave?192.168.235.152 Vip?192.168.235.200 编译环境?yum?-y?install?gcc?gcc+?gcc-c++?openssl?openssl-devel?pcre?pcre-devel ? 当?M...
分类:
其他好文 时间:
2015-07-03 16:19:24
阅读次数:
201
HOST: MINT
NGINX VERSION: nginx-1.5.8(nginx-1.5.8_arm.tar)
ZLIB VERSION: zlib-1.2.8
PCRE VERSION: pcre-8.33
nginx 居然不太支持交叉编译,configure里面没有现成参数可以设置。
不过幸好提供了--with-cc --with-cpp。
网上最新的PCRE版本是10.0,...
分类:
其他好文 时间:
2015-07-03 15:56:14
阅读次数:
201
1.安装准备(1)下载apache安装包http://archive.apache.org/dist/httpd/2.下载安装apache依赖关联包(共四个:apr,apr-iconv,apr-util,pcre)http://archive.apache.org/dist/apr/(1)安装apr#tarzxvfapr-1.4.6.tar.gz#cdapr-1.4.6#./configure#make#makeinstall(2)安装apr-ic..
分类:
Web程序 时间:
2015-07-03 00:31:10
阅读次数:
160
http://www.centoscn.com/image-text/config/2014/0712/3285.html1、安装编译工具yum install wget make gcc gcc-c++ zlib-devel openssl openssl-devel pcre-devel ker...
分类:
其他好文 时间:
2015-07-01 23:23:08
阅读次数:
119