下载nginx新版本
wget http://tengine.taobao.org/download/tengine-2.0.3.tar.gz
tar zxvf tengine-2.0.3.tar.gz
./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版本