官網下載點
http://tengine.taobao.org/download.html
Tengine-2.2.2
更新內容說明
http://tengine.taobao.org/changelog_cn.html#2_2_2
安裝必需的元件
yum install gcc gcc-c++ ncurses-devel perl openssl openssl-devel pcre-devel
編譯
wget http://tengine.taobao.org/download/tengine-2.2.2.tar. tar zxvf tengine-2.2.2.tar.gz cd tengine-2.2.2 ./configure --prefix=/usr/local/web/nginx --with-http_stub_status_module --with-http_ssl_module make && make install
編譯完成檢查版本
[root@34b8e2970863 conf]# /usr/local/web/nginx/sbin/nginx -v Tengine version: Tengine/2.2.2 (nginx/1.8.1)
模組檢查
/usr/local/web/nginx/sbin/nginx -m
啟動服務
/usr/local/web/nginx/sbin/nginx
停止服務
/usr/local/web/nginx/sbin/nginx -s stop
nginx設定檔位子
/usr/local/web/nginx/conf/