一.环境准备下载
1.下载tengine
2.3.2版地址:https://tengine.taobao.org/download/tengine-2.3.2.tar.gz
二.安装tengine
将tengine-2.3.2.tar.gz放入/download,顺序执行以下命令
yum -y install gcc
yum -y install pcre-devel
yum -y install openssl-devel
#yum -y install gcc-c++ pcre pcre-devel zlib zlib-devel openssl openssl-devel
cd /download
tar -xzvf tengine-2.3.2.tar.gz
cd /download/tengine-2.3.2
#./configure
#./configure --add-module=./modules/ngx_http_proxy_connect_module --with-stream --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-threads --with-stream_ssl_preread_module --with-stream_ssl_module
./configure --add-module=./modules/ngx_http_proxy_connect_module --with-stream
make
make install
以上命令可另存为xx.sh文件,直接执行sh文件,命令./xx.sh
三.配置环境变量
在/etc/profile文件最后添加
#nginx
export PATH=$PATH:/usr/local/nginx/sbin
使环境变量生效,执行命令
source /etc/profile