Sometimes, we need to install nginx separately to handle a large number of download requests. CENTOS5 installation Nginx encountered rewrite and HTTP cache error Resolution:
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
Installation nginx times wrong
./configure:error:the HTTP Rewrite module requires the PCRE library.
Install pcre-devel solve problems
Yum-y Install Pcre-devel
Error tip:./configure:error:the HTTP Cache module requires MD5 functions
From OpenSSL Library. Can either disable the module by using
--without-http-cache option, or install the OpenSSL library into the system,
or builds 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
Summarize:
Yum-y Install Pcre-devel OpenSSL openssl-devel
./configure--prefix=/usr/local/nginx
Make
Make install
Everything's done.
Transfer from (http://blog.csdn.net/hfsu0419/article/details/7190152)