nginx-1.10.1安装支持http2协议

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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容