需要接入http3,索性最新的nginx在构建一波,趟一遍坑
准备工作
1.环境命令安装
yum install GeoIP -y
yum install GeoIP-devel -y
yum install libmaxminddb-devel -y
yum install -y patch wget zlib zlib-devel lftp gcc gcc-c++ make openssl-devel pcre-devel pcre net-tools yum-utils && yum clean all
2.最新nginx包下载
官方下载
3.准备boringssl
官网
# 下载使用git
git clone https://boringssl.googlesource.com/boringssl
4.准备ninja 用于构建boringssl
ninja-github-releases
unzip xx.zip
cp ./ninja /usr/bin
5.lua环境构建(可选)
需要以下这些包-可以在github下载相应的包
luajit2
lua-resty-core
lua-resty-lrucache
cd /opt/luajit2-2.1-20240815
make PREFIX=/usr/local/ && make install PREFIX=/usr/local/
cd /opt/lua-resty-core-0.1.29
make install LUA_LIB_DIR=/usr/local/share/lua/5.1
cd /opt/lua-resty-lrucache-0.14
make install