标签:
现在最新的版本是nginx-1.9.1 下载.tar.gz包 ,解压。
timeless@timeless-HP-Pavilion-g4-Notebook-PC:/usr/local/src/nginx-1.9.1$ ./configure
configure 过程中可能会遇到错误
./configure: error: the HTTP rewrite module requires the PCRE library. //大体意思是重写模块需要pcre模块 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 nginx by using --with-pcre=<path> option.
解决办法
http://www.pcre.org/ 编译安装便可
执行操作./configure &&make &&make install
标签:
原文地址:http://www.cnblogs.com/timelesszhuang/p/4546276.html