下载nginx源码,

 

./configure --prefix=/usr/local/nginx/1.8  --with-http_ssl_module --with-http_dav_module --with-http_flv_module --with-http_realip_module --with-http_gzip_static_module --with-http_stub_status_module --with-mail --with-mail_ssl_module --with-debug --http-client-body-temp-path=/var/tmp/nginx/1.8/client --http-proxy-temp-path=/var/tmp/nginx/1.8/proxy --http-fastcgi-temp-path=/var/tmp/nginx/1.8/fastcgi --http-uwsgi-temp-path=/var/tmp/nginx/1.8/uwsgi --http-scgi-temp-path=/var/tmp/nginx/1.8/scgi

  

 过程中检测出必须的依赖包自行安装

 

最后 sudo make && make install  安装完成

posted on 2016-01-22 14:09  FreeSpider  阅读(191)  评论(0编辑  收藏  举报