51工具盒子

依楼听风雨
笑看云卷云舒,淡观潮起潮落

Nginx安装之前奏PCRE

|----|---------------------------------------------------------------------------------------------------------------------------------------------------| | 导读 | PCRE(Perl Compatible Regular Expressions)是一个轻量级的Perl函数库,包括 perl 兼容的正则表达式库。它比Boost之类的正则表达式库小得多。PCRE十分易用,同时功能也很强大,性能超过了POSIX正则表达式库和一些经典的正则表达式库。 |

安装步骤

  1. 这里我们选用的PCRE版本为8.37,可以点这里进行下载http://sourceforge.net/projects/pcre/files/pcre/

  2. 使用tar -zxvf pcre-8.37.tar.gz进行解压。

  3. 运行 chmod -R 777 /pcre-8.37 对当前文件夹授予全部读写权限。

  4. 切换到/pcre-8.37目录下,运行 ./configure 进行pcre初始化配置,会在控制台打印出一大堆的输出信息。

  5. 执行make操作,进行编译。

[root@server06 pcre-8.37]# make 
rm -f pcre_chartables.c 
ln -s ./pcre_chartables.c.dist pcre_chartables.c
make  all-am
make[1]: Entering directory `/opt/nginx/pcre-8.37' CC libpcre_la-pcre_byte_order.lo CC libpcre_la-pcre_compile.lo CC libpcre_la-pcre_config.lo CC libpcre_la-pcre_dfa_exec.lo CC libpcre_la-pcre_exec.lo CC libpcre_la-pcre_fullinfo.lo CC libpcre_la-pcre_get.lo CC libpcre_la-pcre_globals.lo CC libpcre_la-pcre_jit_compile.lo CC libpcre_la-pcre_maketables.lo CC libpcre_la-pcre_newline.lo CC libpcre_la-pcre_ord2utf8.lo CC libpcre_la-pcre_refcount.lo CC libpcre_la-pcre_string_utils.lo CC libpcre_la-pcre_study.lo CC libpcre_la-pcre_tables.lo CC libpcre_la-pcre_ucd.lo CC libpcre_la-pcre_valid_utf8.lo CC libpcre_la-pcre_version.lo CC libpcre_la-pcre_xclass.lo CC libpcre_la-pcre_chartables.lo CCLD libpcre.la CC libpcreposix_la-pcreposix.lo CCLD libpcreposix.la CXX libpcrecpp_la-pcrecpp.lo CXX libpcrecpp_la-pcre_scanner.lo CXX libpcrecpp_la-pcre_stringpiece.lo CXXLD libpcrecpp.la CC pcretest-pcretest.o CC pcretest-pcre_printint.o CCLD pcretest CC pcregrep-pcregrep.o CCLD pcregrep CXX pcrecpp_unittest-pcrecpp_unittest.o CXXLD pcrecpp_unittest CXX pcre_scanner_unittest-pcre_scanner_unittest.o CXXLD pcre_scanner_unittest CXX pcre_stringpiece_unittest-pcre_stringpiece_unittest.o CXXLD pcre_stringpiece_unittest make[1]: Leaving directory`/opt/nginx/pcre-8.37'

  1. 运行 [root@server06 pcre-8.37]# make install,进行安装,至此PCRE安装完成。
[root@server06 pcre-8.37]# make install

原文来自:http://www.linuxidc.com/Linux/2015-03/114986.htm

本文地址:https://www.linuxprobe.com/nginx-prelude-install-pcre.html编辑:冯瑞涛,审核员:逄增宝

本文原创地址:https://www.linuxprobe.com/nginx-prelude-install-pcre.html编辑:KSJXAXOAS,审核员:暂无

赞(0)
未经允许不得转载:工具盒子 » Nginx安装之前奏PCRE