环境:php7、 centos7、lnmp
原定目标:将之前搭建的网站启用TLSv1.3。
主要步骤:
1、下载最新版openresty源安装包。解压后进入文件夹,并将open1.1.1b(没有试过不指定)源安装包文件夹和brotli源安装包文件夹copy到openresty文件夹。
2、./copnfigure配置,代码如下,可以自己修改。
./configure --prefix=/usr/local/openresty --with-luajit --with-stream --with-http_iconv_module --with-http_realip_module --with-ld-opt="-Wl,-rpath,/usr/local/lib" --with-http_stub_status_module --with-http_ssl_module --with-http_sub_module --with-openssl=openssl-1.1.1b --without-http_redis2_module --with-openssl-opt=enable-tls1_3 --with-http_v2_module --with-http_flv_module --with-http_gzip_static_module --with-pcre --add-module=./ngx_brotli
3、gmake
4、gmake install,若出现以下错误,需要将之前的nginx/conf的conf后缀文件,复制到openresty的nginx/