nginx-1.10.1安装支持http2协议

2016-08-09  本文已影响0人  longjuxu

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

上一篇下一篇

猜你喜欢

热点阅读