本帖最后由 gaoxu529 于 2022-3-25 11:12 编辑
目前通过以下步骤已解决。
1. 获取punum ,后面要用到
- cat /proc/cpuinfo |grep "processor"|wc -l
复制代码
2. 下载nghttp2 源码
- wget -O nghttp2-1.42.0.tar.gz https://github.com/nghttp2/nghttp2/archive/refs/tags/v1.42.0.tar.gz
复制代码
3. 编译nghttp2
- tar -zxf nghttp2-1.42.0.tar.gz
- cd nghttp2-1.42.0
- rm -rf /usr/local/nghttp2
- autoreconf -i
- automake
- autoconf
- ./configure --prefix=/usr/local/nghttp2
- make clean
- make -j ${cupnum}
- make install
复制代码
4、下载curl源码
- wget https://download.bt.cn/src/curl-7.70.0.tar.gz
复制代码
5、编译curl
- tar -zxf curl-7.70.0.tar.gz
- cd curl-7.70.0
- rm -rf /usr/local/curl
- ./configure --prefix=/usr/local/curl --enable-ares --without-nss --with-ssl=/usr/local/openssl --with-nghttp2=/usr/local/nghttp2
- make -j${cpunum}
- make install
复制代码
6、卸载并重新安装php
|