1. Download tengine
wget http://tengine.taobao.org/download/tengine-2.2.2.tar.gz
2. Install the module dependency library of tenginx (nginx)
yum install gcc-c++
yum -y install pcre pcre-devel
yum -y install zlib zlib-devel
yum -y install openssl openssl-devel
3. Unzip and specify the installation path
//解压
tar -zxvf tengine-2.2.2.tar.gz
//切换目录
cd tengine-2.2.2
//指定安装到/usr/local/src/tengine目录
./configure --prefix=/usr/local/src/tengine
Fourth, compile and install
make
make install
Five, start (tengine) nginx
/usr/local/src/tengine/sbin/nginx //执行命令
6. Access (tengine) nginx