有没人在centos安装Nginx遇到这样问题?

v6hacker 2012-09-04 01:46:03
本人菜鸟,不会安装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,才能实现伪静态,
真的深感疑惑!!

...全文
670 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
v6hacker 2012-09-13
  • 打赏
  • 举报
回复
--with-http_rewrite_module,是默认自带的参数选项,如果不需要开启rewrite,就用--without-http_rewrite_module去掉,,,
mcsafe 2012-09-08
  • 打赏
  • 举报
回复
--with-pcre=/usr/local/pcre-8.12
这个地方指向的是pcre源码所在目录,不是安装所在位置

5,657

社区成员

发帖
与我相关
我的任务
社区描述
Web开发应用服务器相关讨论专区
社区管理员
  • 应用服务器社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧