cd /usr/local/
wget https://www.openssl.org/source/old/1.1.1/openssl-1.1.1e.tar.gz
tar xf openssl-1.1.1e.tar.gz
wget http://tengine.taobao.org/download/tengine-2.3.2.tar.gz
tar xf tengine-2.3.2.tar.gz
cd tengine
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-pcre --add-module=modules/ngx_http_upstream_check_module --with-http_ssl_module --with-openssl=/usr/local/openssl-1.1.1e
make
##注意make 后不需要进行make install
cd /usr/local/nginx/sbin
mv nginx nginx.old
cd /usr/local/tengine-2.3.2/objs
cp nginx /usr/local/nginx/sbin
kill -USR2 `cat /var/run/nginx.pid` ##nginx pid文件具体根据nginx.conf 确定
kill -WINCH `cat /var/run/nginx.pid.oldbin`
kill -QUIT `cat /var/run/nginx.pid.oldbin`