nginx编译支持HTTP2.0
作者:互联网
nginx编译支持HTTP2.0
nginx编译支持HTTP2.0
wget https://www.openssl.org/source/openssl-1.1.0i.tar.gz #openssl不用安装
tar -zxf openssl-1.1.0i.tar.gz -C /usr/local/data/soft/
cd nginx-1.12.1/
./configure --prefix=/usr/local/data/nginx --user=goforit --group=goforit --with-pcre --with-http_stub_status_module --with-http_ssl_module --with-http_v2_module --with-openssl=/usr/local/data/soft/openssl-1.1.0i
make
make install #不用,按照升级nginx操作即可,升级操作如下
mv /usr/local/data/nginx/sbin/nginx{,.old}
cp objects/nginx /usr/local/data/nginx/sbin/nginx 平滑升级nginx
kill -USR2 cat /usr/local/data/nginx/log/nginx.pid
从容关闭旧版本的Nginx进程
kill -WINCH cat /usr/local/data/nginx/log/nginx.pid.oldbin
决定是否升级到新版的nginx
kill -HUP cat /usr/local/data/nginx/log/nginx.oldbin
kill -QUIT cat /usr/loal/data/nginx/log/nginx.oldbin
nginx 配置文件修改 listen 443 ssl http2;
然后重新reload nginx即可测试
标签:编译,data,openssl,nginx,kill,usr,local,HTTP2.0 来源: https://www.cnblogs.com/90hou/p/10405637.html