读书人

有没人在centos安装Nginx遇到这样有关

发布时间: 2012-09-23 10:28:11 作者: rapoo

有没人在centos安装Nginx遇到这样问题?
本人菜鸟,不会安装Nginx!请各位解决下问题,谢谢!
系统:Centos 5.8
已经默认安装安装 pcre-8.12
./configure
make && make install

安装Nginx 1.2.3
./configure --user=www --group=www --prefix=/usr/local/nginx/ --with-http_stub_status_module --with-openssl==/usr/include --with-sha1=/usr/lib --with-pcre=/usr/local/pcre-8.12 --with-http_gzip_static_module --with-http_rewrite_module

报错:./configure: error: invalid option "--with-http_rewrite_module"

我已经安装了Pcre,不明白为什么报错! --with-pcre=/usr/local/pcre-8.12 这个参数指向pcre源码解压的目录(网上教程都是说指向解压目录,不是安装目录)

./configure --help时发现只有"--without-http_rewrite_module"选项,并没有“--with-http_rewrite_module”,但是网上都说安装了pcre后,再指定 --with-http_rewrite_module,才能实现伪静态,
真的深感疑惑!!



[解决办法]
--with-pcre=/usr/local/pcre-8.12
这个地方指向的是pcre源码所在目录,不是安装所在位置

读书人网 >应用服务器

热点推荐