1. 程式人生 > >CentOS安裝Nginx 報錯“configure: error: the HTTP rewrite module requires the PCRE library”解決辦法

CentOS安裝Nginx 報錯“configure: error: the HTTP rewrite module requires the PCRE library”解決辦法

CentOS 6.2 安裝Nginx時報錯

錯誤提示: ./configure: error: the HTTP rewrite module requires the PCRE library.

解決辦法:

  1. 安裝 pcre-devel 與 openssl-devel
  2. yum -y install pcre-devel openssl openssl-devel
  3. ./configure --prefix=/usr/local/nginx
  4. make
  5. make install

關注公眾號「Python專欄」,後臺回覆「機器學習電子書」獲得100份機器電子學