1. 安装tengine
tar -zxvf tengine-3.1.0.tar.gz
cd tengine-3.1.0/
yum -y install gcc zlib zlib-devel pcre-devel openssl openssl-devel
chmod +x *.sh
./configure --prefix=/home/nginx --with-http_gzip_static_module --with-http_realip_module --with-http_stub_status_module
make
make install
2. 启动
安装路径下的
/home/nginx/sbin/nginx -s reload
curl http://localhost