码迷,mamicode.com
首页 > 其他好文 > 详细

Nginx最佳安装与优化

时间:2017-04-15 15:00:49      阅读:143      评论:0      收藏:0      [点我收藏+]

标签:stat   表达   --   evel   yum   local   页面   open   支持   

wget http://nginx.org/download/nginx-1.11.13.tar.gz
tar zxvf nginx-1.11.13.tar.gz
cd nginx-1.11.13
yum -y install pcre pcre-devel gcc* ncurser-devel perl openssl-devel 
whereis cc gcc
./configure --prefix=/usr/local/nginx --with-pcre --with-http_stub_status_module --with-http_ssl_module
//--with-pcre在Nginx添加对正则表达式的支持
//--with-http_stub_status_module添加对状态页面的支持
//--with-http_ssl_module在Nginx添加对https站点的支持

make make install

 

Nginx最佳安装与优化

标签:stat   表达   --   evel   yum   local   页面   open   支持   

原文地址:http://www.cnblogs.com/vincent-liang/p/6714062.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!