編譯時候如下錯誤:
./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 nginx by using --with-pcre=<path> option.
重新編譯,指定 --with-pcre, 其中 --with-pcre=/vagrant/download/pcre-8.35 是pcre是的源碼目錄,不是安裝目錄
[vagrant@localhost nginx-1.7.0]$ ./configure --prefix=/usr/local/nginx --with-pcre=/vagrant/download/pcre-8.35
這樣就不報錯了。