Ubuntu安装Nginx服务器出错解决

Ubuntu安装Nginx服务器错误信息:

./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.

如上错误显示需要pcre库,在ubuntu中,你需要安装libpcre3 和 libpcre3-dev,命令如下:

sudo apt-get install libpcre3 libpcre3-dev

安装完成后,

./configure

make

make install

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wywgpg.html