Tengine is a web server open source project initiated by Taobao. Based on nginx, it adds many advanced functions and features to meet the requirements of large traffic volume. We can think of Tengine as a better nginx, or a superset of nginx. Taobao's Alexa ranking is 12th, with billions of PV every day, which is supported by this better nginx. Currently, the Tengine project has been open sourced in December 2011 and is committed to creating an efficient, stable, secure and easy-to-use Web platform.
tengine
The latest Tengine version number is 1.3.0. Now, let’s take a look at how to upgrade nginx to Tengine in the LNMP environment.
Log in via SSH and execute the following code to start the upgrade.

wget -c http://tengine.taobao.org/download/tengine-1.3.0.tar.gz
tar zxvf tengine-1.3.0.tar.gz
cd tengine-1.3.0
./configure
make
mv /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin /nginx.old
cp -r objs/nginx /usr/local/nginx/sbin/nginx

Next, we need to delete the following code in /usr/local/nginx/conf/nginx.conf:

location /status {
stub_status on;
access_log   off;
 < x2>                    }

Check if it is working properly:

/usr/local/nginx/sbin/nginx  -t

The following prompt means it is normal:

the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
configuration file /usr/local/nginx/conf/nginx.conf test is successful

Next, kill the process and restart nginx.

kill -USR2 `cat /usr/local/nginx/logs/nginx.pid`
kill -QUIT `cat /usr/local/nginx/logs/nginx.pid.oldbin`
/etc/ init.d/nginx  stop
/etc/init.d/nginx start

Finally, check whether the upgrade is normal:

/usr/local/nginx/sbin/nginx -v

OK, as follows:

Tengine version: Tengine/1.3.0 (nginx/1.0.15)

Taobao official project address: http://tengine.taobao.org


Hong Kong/United States/Domestic High Speed ​​VPS

postid
22721

Leave a Reply