tengine是淘宝基于nginx开发得。
下载页面:
http://tengine.taobao.org/download_cn.html
安装流程:
1.下载到服务器
wget http://tengine.taobao.org/download/tengine-2.3.2.tar.gz -P /opt
2. 安装依赖
yum install gcc patch libffi-devel python-devel zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel openssl openssl-devel -y
3. 解压
cd /opt
tar xf tengine-2.3.2.tar.gz
4. 指定安装目录
cd /opt/tengine-2.3.2/
./configure --prefix=/opt/tengine/
5. 编译、安装
make && make install
6. 配置环境变量
echo "PATH=/opt/tengine/sbin/:$PATH" >> /etc/profile
source /etc/profile
7. 启动nginx测试
任意目录输入nginx
其它命令
nginx -t // 检查配置文件语法是否正确
nginx // 启动
nginx -s reload // 重新载入配置文件
nginx -s stop // 停止nginx