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