Sometimes, we need to install nginx separately to handle a large number of download requests. How to solve the rewrite and HTTPcache errors when installing nginx on Centos5 separately: wgethttp: // rewrite
Sometimes, we need to installNginxTo process a large number of download requests. Install Centos5 separatelyNginxSolution to the rewrite and HTTPcache errors:
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
An error occurred while installing Nginx.
./Configure: error: the HTTP rewrite module requires the PCRE
Library.
Install pcre-devel to solve the problem
Yum-y install pcre-devel
Error message:./configure: error: the HTTP cache module requires md5functions from OpenSSL library. You can eitherdisable the module by using
-- Without-http-cache option, or install the OpenSSL library using the system, or build the OpenSSL library statically from thesource with nginx by using -- with-http_ssl_module -- with-openssl = Options.
Solution:
Yum-y install openssl-devel
Summary:
Yum-y install pcre-devel openssl-devel
./Configure -- prefix =/usr/local/nginx
Make
Make install
If the command make: command notfound is prompted During make, it means that make is not installed. Command:
# Yum-y install make