美文网首页
nginx-1.10.1安装支持http2协议

nginx-1.10.1安装支持http2协议

作者: longjuxu | 来源:发表于2016-08-09 18:15 被阅读0次

1、依赖包安装

yum install pcre pcre-devel openssl openssl-devel -y

2、用户创建

useradd nginx -s /sbin/nologin -M

3、安装

wget nginx.org/download/nginx-1.10.1.tar.gz

tar xf nginx-1.10.1.tar.gz

cd nginx-1.10.1

./configure --user=nginx --group=nginx --prefix=/opt/application/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_v2_module --with-openssl=/root/openssl-1.0.2h

make && make install

相关文章

网友评论

      本文标题:nginx-1.10.1安装支持http2协议

      本文链接:https://www.haomeiwen.com/subject/wxydsttx.html