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

nginx版本升级

时间:2018-03-04 17:11:23      阅读:207      评论:0      收藏:0      [点我收藏+]

标签:download   2.0   not   configure   fragment   bsp   通过   reg   upgrade   

下载nginx新版本

wget http://tengine.taobao.org/download/tengine-2.0.3.tar.gz

tar zxvf tengine-2.0.3.tar.gz

cd tengine-2.0.3

./configure 具体配置通过 nginx -V获取

make

切记不要make install


 

cd /usr/local/nginx/sbin/

cp nginx nginx.bak


 

cp /data/package/tengine-2.0.3/objs/nginx /usr/local/nginx/sbin/

会有报错 cannot create regular file `/usr/local/nginx/sbin/nginx‘: Text file busy

cp -rfp /data/package/tengine-2.0.3/objs/nginx /usr/local/nginx/sbin/ 强制覆盖


 

cd /data/package/tengine-2.0.3

make upgrade


 


 


 

/usr/local/nginx/sbin/nginx -v 完成后查看nginx版本

 

nginx版本升级

标签:download   2.0   not   configure   fragment   bsp   通过   reg   upgrade   

原文地址:https://www.cnblogs.com/bazingafraser/p/8505078.html

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