unbuntu 安裝nginx

Ubuntu安裝nginx, the HTTP rewrite module requires the PCRE library 的解決方法

解壓nginx-1.9.12.tar.gz後,執行下面的命令安裝

./configure --prefix=/usr/bin/

出現the HTTP rewrite module requires the PCRE library 的錯誤。

解決方法

需要安裝pcre包

 

sudo apt-get update
sudo apt-get install libpcre3 libpcre3-dev

 

你可能還需要安裝

sudo apt-get install openssl libssl-dev
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章