首頁  >  文章  >  後端開發  >  Centos上安裝nginx報錯

Centos上安裝nginx報錯

WBOY
WBOY原創
2016-08-08 09:29:35954瀏覽

編譯時候如下錯誤:

./configure: error: the HTTP rewrite module requires the PCRE library.You can either disable the module by using --without-http_rewmf_ pule🜎, intonoption intoculronment the liocin install , or build the PCRE librarystatically from the source with nginx by using --with-pcre= option.重新編譯,指定--with-pcre, --with-pcre=/vagrant/pcre=/vagrant/ download/pcre-8.35 是pcre是的
源碼目錄

,不是安裝目錄

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

這樣就不報錯了。

以上就介紹了Centos上安裝nginx報錯,包括了方面的內容,希望對PHP教程有興趣的朋友有幫助。

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn