yum install gcc gcc-c++ opensslopenssl-devel zib-devel zib
/usr/local
目录wget https://sourceforge.net/projects/pcre/files/pcre/8.38/pcre-8.38.tar.gz
tar xzvf pcre-8.38.tar.gz
cd pcre-8.38
./configure && make -j4 && make install
yum -y install openssl openssl-devel
wget http://tengine.taobao.org/download/tengine-2.3.3.tar.gz
tar xzvf tengine-2.3.3.tar.gz
cd tengine-2.3.3
./configure && make && make install
在/usr/local/nginx目录下使用即可
cd /usr/local/nginx
/sbin/nginx -t # 测试配置
/sbin/nginx # 启动
/sbin/nginx -s reload # 重启
/sbin/nginx -s stop # 停止
将配置文件挂载就行 /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
cd /usr/local/tengine-2.3.3
./configure --with-http_v2_module
make
make install
nginx: [emerg] the "ssl" parameter requires ngx_http_ssl_module in ...
可以在配置的时候加上--with-http_ssl_module
比如./configure --prefix=/usr/local/nginx --with-http_ssl_module
具体参考https://www.cnblogs.com/ghjbk/p/6744131.html