Heim  >  Artikel  >  Backend-Entwicklung  >  Centos上安装nginx报错

Centos上安装nginx报错

WBOY
WBOYOriginal
2016-08-08 09:29:35954Durchsuche

编译时候如下错误:

./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是的源码目录,不是安装目录

[vagrant@localhost nginx-1.7.0]$ ./configure --prefix=/usr/local/nginx --with-pcre=/vagrant/download/pcre-8.35

这样就不报错了。

以上就介绍了Centos上安装nginx报错,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn