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

有时候,我们需要单独安装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://blog.51cto.com/yulp2010/578141

nginx安装 问题 1相关推荐

  1. 一、nginx 安装

    添加官方 yum 源 1 vim /etc/yum.repos.d/nginx.rep 输入以下内容(OS为你的系统,OSRELEASE 系统版本) 1 [nginx] 2 name=nginx re ...

  2. Linux环境Nginx安装多版本PHP

    关于Linux环境Nginx安装与调试以及PHP安装参考此文即可:http://blog.csdn.net/unix21/article/details/8544922 linux版本:64位Cent ...

  3. red5下nginx安装配置

    http://zfl110.iteye.com/blog/1155149 原址:http://lqw.iteye.com/blog/652763  安装Nginx 1.首先安装pcre-8.02.ta ...

  4. Centos nginx 安装 源码方式安装

    以 yum 方式安装 Nginx https://andyoung.blog.csdn.net/article/details/118802486 安装所需插件 1.安装gcc gcc是linux下的 ...

  5. nginx安装-添加MP4播放模块

    nginx安装很简单,但是有的时候是已经安装的nginx ,升级增加nginx 模块功能. 最近公司要nginx增加一个可以播放 MP4的模块,安装还算顺利,不说废话上命令. 1 安装依赖 yum i ...

  6. Nginx安装、默认虚拟主机、Nginx用户认证、Nginx域名重定向

    12.6 Nginx安装 安装包下载到/usr/local/src目录 [root@taoyuan ~]# cd /usr/local/src [root@taoyuan src]# wget htt ...

  7. windows下nginx安装、配置与使用

    目前国内各大门户网站已经部署了Nginx,如新浪.网易.腾讯等:国内几个重要的视频分享网站也部署了Nginx,如六房间.酷6等.新近发现Nginx 技术在国内日趋火热,越来越多的网站开始部署Nginx ...

  8. Nginx安装、配置及使用总结

    版权声明:本文为博主原创文章,未经博主允许不得转载. Nginx的安装.配置及使用总结: Nginx是一个高性能的HTTP及反向代理服务器,也是IMAP/POP3/SMTP代理服务器.在高并发情况下, ...

  9. Centos 6.0/ Nginx 安装与配置

    系统:Centos 6.0 下载nginx(nginx-1.2.4.tar.g)   http://nginx.org/ 下载pcre(pcre-8.31.tar.gz)    http://pcre ...

最新文章

  1. java学习笔记5--类的方法
  2. 【其他】U盘安装Ubuntu12.04成功后系统无法启动的问题
  3. Python--day 3
  4. 优酷《追光吧!》正式开播 风度、实力成关键词
  5. 绕过漏洞危害_Dipper Wallet漏洞赏金计划
  6. 程序员的相亲那件小事,指南献给您
  7. python OpenCV给视频去除水印
  8. C语言小游戏,笑傲江湖之鸿蒙
  9. 安利App介绍及下载(含二维码)
  10. CSS 利用@media screen判断识别手机/PC端浏览器
  11. 小程序助力智能家居生态平台
  12. 《国产操作系统之银河麒麟》桌面环境
  13. 浅浅的学习一下汇编技术入门基础知识,隔壁家的小孩都学哭了。
  14. panada indexing,selection,assigning
  15. AIS标准(ITU-R M.1371-5)和Python解码模块
  16. 大前端 - 微信小程序
  17. 学习python用哪个app-python做app用什么工具
  18. 将字符串中的空字符全部替换为别的字符串 Python 版
  19. linux中继器设置密码,无线扩展器管理员密码_初始密码是多少?-192路由网
  20. 软件测试工具笔记:QC安装步骤

热门文章

  1. Git——如何将本地项目提交至远程仓库(第一次)
  2. mac os下valgrind的安装
  3. iOS动画详解(学习动画看这一篇就够了)
  4. android网络编程之HttpUrlConnection的讲解--GET请求
  5. C#_uploadify_mvc_version
  6. 使用面向 iOS 的本机插件扩展 PhoneGap
  7. matlab正态分布
  8. 领导让我重构代码_领导不是由代码构成
  9. 编写文档_如何通过编写优质文档来使自己的未来快乐
  10. Spring Boot项目快速搭建