nginx編譯支持HTTP2.0

nginx編譯支持HTTP2.0nginx

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/code

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 makessl

make install #不用,按照升級nginx操做便可,升級操做以下get

mv /usr/local/data/nginx/sbin/nginx{,.old}openssl

cp objects/nginx /usr/local/data/nginx/sbin/nginx 平滑升級nginxit

kill -USR2 cat /usr/local/data/nginx/log/nginx.pid編譯

從容關閉舊版本的Nginx進程module

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便可測試

相關文章
相關標籤/搜索