由于nginx在编译时默认的 http rewrite(使用正则表达式对请求进行重写) 模块依赖
PCRE(Perl Compatible Regular Expressions)库,官网:
http://www.pcre.org,所以需要先安装PCRE
如果未安装,编译时会提示如下:
./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