ubuntu上安装tengine流水账

因为nginx的社区版对于心跳检测的支持不是很友好,所以有两个选择:1、收费版的nginx+,2、免费的tengine

最后选择了tengine

参考文档:http://tengine.taobao.org/document_cn/install_cn.html

下载并解压

wget http://tengine.taobao.org/download/tengine-2.2.0.tar.gz
tar zxvf tengine-2.2.0.tar.gz

编译

./configure --prefix=/etc/nginx/ --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log

补充依赖

#./configure: error: the HTTP rewrite module requires the PCRE library.
sudo apt-get install libpcre3 libpcre3-dev
#./configure: error: SSL modules require the OpenSSL library.
sudo apt-get install openssl libssl-dev

安装

make
sudo make install

 检查tengine版本

nginx -v
#得到结果Tengine version: Tengine/2.2.0 (nginx/1.8.1)

 

posted on 2017-06-01 15:43  cbwleft  阅读(356)  评论(0)    收藏  举报