CentOS上安装Nginx报错解决一例


CentOS上编译安装装Nginx时候报如下错误:

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

You can either disable the module by using --without-http_rewrite_module

option, or install the PCRE library into the system, or build the PCRE library

statically from the source with nginx by using --with-pcre=<path> option.

重新编译,指定 --with-pcre, 其中 --with-pcre=/bkjia/download/pcre-8.35 是pcre是的源码目录,不是安装目录

[www.bkjia.com@localhost nginx-1.7.0]$ ./configure --prefix=/usr/local/nginx --with-pcre=/bkjia/download/pcre-8.35

这样就不报错了。

--------------------------------------分割线 --------------------------------------

CentOS 6.2实战部署Nginx+MySQL+PHP

使用Nginx搭建WEB服务器

搭建基于Linux6.3+Nginx1.2+PHP5+MySQL5.5的Web服务器全过程

CentOS 6.3下Nginx性能调优

CentOS 6.3下配置Nginx加载ngx_pagespeed模块

CentOS 6.4安装配置Nginx+Pcre+php-fpm

Nginx安装配置使用详细笔记

Nginx日志过滤 使用ngx_log_if不记录特定日志

Nginx 的详细介绍:请点这里
Nginx 的下载地址:请点这里

本文永久更新链接地址:

相关内容