当前位置:首页 > 服务器技术 > nginx

nginx 环境搭建使用之入门

http://nginx.org/下载最新的nginx

现在最新的版本是nginx-1.9.1   下载.tar.gz包 ,解压。

timeless@timeless-HP-Pavilion-g4-Notebook-PC:/usr/local/src/nginx-1.9.1$ ./configure

configure 过程中可能会遇到错误

./configure: error: the HTTP rewrite module requires the PCRE library.   //大体意思是重写模块需要pcre模块  
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.

解决办法

http://www.pcre.org/       编译安装便可 

执行操作./configure  &&make &&make install

原文:http://www.cnblogs.com/timelesszhuang/p/4546276.html


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!