帮助中心 >  技术知识库 >  网站相关 >  建站知识 >  Centos安装nginx遇到的rewrite和HTTP cache错误解决办法

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

2016-05-05 15:52:05 7538

单独在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

一切搞定


提交成功!非常感谢您的反馈,我们会继续努力做到更好!

这条文档是否有帮助解决问题?

非常抱歉未能帮助到您。为了给您提供更好的服务,我们很需要您进一步的反馈信息:

在文档使用中是否遇到以下问题: