欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

Centos上安装nginx报错

程序员文章站 2022-05-31 11:27:25
...
编译时候如下错误:./configure: error: the HTTP rewrite module requires the PCRE library.You can either disable the module by using --without-http_rewrite_moduleoption, or install the PCRE library into the system, or build the PCRE librarystatically from the source with nginx by using --with-pcre= option.

重新编译,指定 --with-pcre, 其中 --with-pcre=/vagrant/download/pcre-8.35 是pcre是的源码目录,不是安装目录