咨询热线:4006-75-4006

售前:9:00-23:30    备案:9:00-18:00    技术:7*24h

Centos安装nginx遇到的rewrite和HTTP cache错误解决办法

2016-05-05 15:52:05 13294次

单独在Centos安装nginx遇到的rewrite和HTTP  cache错误解决办法:

报如下错时安装pcre-devel解决问题yum -y install pcre-devel后再输入 

blob.png

报如下错误时用命令yum install -y zlib-devel

blob.png

错误提示:./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

总结:

yum -y install pcre-devel openssl openssl-devel

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

make

make install

一切搞定


首页
最新活动
个人中心