源码编译安装nginx

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了源码编译安装nginx相关的知识,希望对你有一定的参考价值。


简单记录下安装nginx的过程


1. 开始安装nginx。

1.1 下载nginx,b并安装:

 cd  /usr/local/src/

 wget  http://nginx.org/download/nginx-1.6.2.tar.gz

 tar  xzvf  nginx-1.6.2.tar.gz

 cd nginx-1.6.2

 

./configure --prefix=/usr/local/nginx --with-http_realip_module --with-http_sub_module --with-http_gzip_static_module --with-http_stub_status_module  --with-pcre

如果提示pcre 不存在,那么yum install -y  pcre-devel

 


make

make  install




本文出自 “dayAndNight” 博客,请务必保留此出处http://hellocjq.blog.51cto.com/11336969/1894498

以上是关于源码编译安装nginx的主要内容,如果未能解决你的问题,请参考以下文章