Centos安裝nginx遇到的rewrite和HTTP cache錯(cuò)誤解決辦法
2016-05-05 15:52:05
12019
單獨(dú)在Centos安裝nginx遇到的rewrite和HTTP cache錯(cuò)誤解決辦法:
報(bào)如下錯(cuò)時(shí)安裝pcre-devel解決問題既yum -y install pcre-devel后再輸入

報(bào)如下錯(cuò)誤時(shí)用命令yum install -y zlib-devel

錯(cuò)誤提示:./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.
解決辦法:
yum -y install openssl openssl-devel
總結(jié):
yum -y install pcre-devel openssl openssl-devel
./configure --prefix=/usr/local/nginx
make
make install
一切搞定