Solve an error when installing Nginx

  
                  

Sometimes we need to install nginx separately to handle a large number of download requests. Rewrite and HTTP cache error solutions encountered when installing nginx on Centos5 alone: ​​

wget http://nginx.org/download/nginx-0.8.33.tar.gz tar -zxvf nginx-0.8.33 .tar.gz cd nginx-0.8.33 ./configure –prefix=/usr/local/nginx


Error when installing Nginx

./configure: error : the HTTP rewrite module requires the PCRE library.

Installing pcre-devel to solve the problem yum -y install pcre-devel


Error: ./configure: error: The HTTP cache module requires md5 functions from OpenSSL library. You can either disable the module by using –without-http-cache option, or install the OpenSSL library into the system, or build the OpenSSL library statically from the source with nginx by using –with-http_ssl_module –with-openssl=<path> options.

Solution:

yum -y install openssl openssl-devel


Summary:

yum -y install pcre-devel openssl openssl-devel

./configure –prefix=/usr/local/nginx

m Ake

make install

Everything is done
zh-CN"],null,[0.98166037],zh-CN"]]]

Copyright © Windows knowledge All Rights Reserved