1、官网地址
http://nginx.org/en/download.html
2、安装ngxin
yum -y install openssl openssl-devel
yum -y install pcre-devel
wget http://nginx.org/download/nginx-1.19.10.tar.gz tar zxvf nginx-1.19.10.tar.gz cd nginx-1.19.10 ./configure --with-http_ssl_module --with-http_v2_module make && make install
3、http2+https例子
server { listen 443 ssl http2; ssl_certificate server.crt; ssl_certificate_key server.key; }