博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
./configure: error: the HTTP rewrite module requi
阅读量:7176 次
发布时间:2019-06-29

本文共 880 字,大约阅读时间需要 2 分钟。

hot3.png

有时候,我们需要单独安装nginx,来处理大量的下载请求。单独在Centos5安装nginx遇到的rewrite和HTTP cache错误解决办法:

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

 

安装Nginx时报错

./configure: error: the HTTP rewrite module requires the PCRE library.

安装pcre-devel解决问题

yum -y install pcre-devel

 

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

一切搞定

转载于:https://my.oschina.net/u/588516/blog/520730

你可能感兴趣的文章
linux下配置pptp 客户端
查看>>
java发送短信至手机
查看>>
rsyslog+loganalyzer+evtsys搭建集中式监控系统
查看>>
Python 学习笔记之函数
查看>>
mysql-mmm高可用架构
查看>>
使用shell脚本搭建源码LAMP环境
查看>>
我的友情链接
查看>>
关于VMware上Linux克隆后网卡名称修改的操作
查看>>
[置顶]让Windows FTP服务器更安全
查看>>
CLR via C#,2
查看>>
xcode莫名问题收集
查看>>
Google网址不跳转
查看>>
我所说的“企业存储”是什么意思
查看>>
我的友情链接
查看>>
支付宝 支付bug
查看>>
马斯洛需求理论
查看>>
C++程序设计问题总结
查看>>
404 Error on Fonts in Tomcat/Java Web App
查看>>
十进制转十六进制
查看>>
【学习笔记2】第一个Struts2应用开发
查看>>