当前位置: 首页 > news >正文

淄博网站建设找卓迅百度客服人工服务电话

淄博网站建设找卓迅,百度客服人工服务电话,个人养老缴费明细查询,wordpress加音乐第一种方式:Nginx官方nginx-quic搭建 通过部署Nginx官方的QUIC分支来实现的浏览器和nginx-quic服务器粗略的HTTP3通信。 1、下载BoringSSL BoringSSL 是由谷歌开发,从 OpenSSL 中分离的一个分支。BoringSSL 是 Chrome/Chromium、Android(但它不是 NDK 的…

第一种方式:Nginx官方nginx-quic搭建

通过部署Nginx官方的QUIC分支来实现的浏览器和nginx-quic服务器粗略的HTTP3通信。
1、下载BoringSSL
BoringSSL 是由谷歌开发,从 OpenSSL 中分离的一个分支。BoringSSL 是 Chrome/Chromium、Android(但它不是 NDK 的一部分)和许多其他应用程序/程序中的 SSL 库。

由于nginx quic版本使用了新的tls1.3协议,需要openssl支持quic,但目前的openssl版本没有对应的支持,所以这里使用google的boringssl。

## 下载代码
git clone https://github.com/google/boringssl.git 
## 编译代码cd boringsslmkdir buildcd buildcmake ..make

2,Cmake命令下载安装,要求安装3.0以上版本

wget https://cmake.org/files/v3.24/cmake-3.24.3.tar.gz
tar zxvf cmake-3.24.3.tar.gz
cd cmake-3.24.3
./bootstrap --prefix=/usr/local/
make && make install

3,安装BoringSSL 要求go版本为1.19

1,删除旧版本go环境
rm -rf /usr/local/go
2,wget https://golang.google.cn/dl/go1.19.linux-amd64.tar.gz
3,tar -C /usr/local/ -zxvf go1.1.19.linux-amd64.tar.gz (官方推荐解压到/usr/local/目录下)
4,配置环境变量 vi /etc/profile
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin 
使修改文件生效 source /etc/profile
5,查看版本 go version
6,如果不生效cd /usr/bin/rm go gofmtcd /usr/local/go/bincp go* /usr/bin/

在这里插入图片描述
4,安装更高版本的gcc
gcc 4.8 的漏洞,在gcc 4.9已经修复,之前使用11.1.0不成,不知道是不是自己的原因,后改换gcc 8.1.0
gcc官网 https://gcc.gnu.org/
下载地址: http://ftp.gnu.org/gnu/gcc/
在这里插入图片描述

1,解压
tar -zxvf gcc-8.1.0.tar.gz
2,查看安装前依赖的软件包
cd gcc-8.1.0/
vim contrib/download_prerequisites

在这里插入图片描述
3,下载对应依赖包
可以直接执行yum groupinstall “Development Tools” 下载,然后安装
也可以分别下载安装,选择需要的版本
https://ftp.gnu.org/gnu/gmp/
https://ftp.gnu.org/gnu/mpfr/
https://ftp.gnu.org/gnu/mpc/
https://gcc.gnu.org/pub/gcc/infrastructure/
4,安装顺序:GMP,mpfr, mpc,isl 。最后安装gcc
5,原来旧版本的gcc不能先卸载,否则安装过程报错
6,安装gmp

    $ tar -jxvf gmp-6.1.0.tar.bz2$ cd gmp-6.1.0$ mkdir temp$ cd temp$ ../configure --prefix=/usr/local/gmp-6.1.0         -----指定安装目录$ make$ make install

7,安装mpfr

    $ tar -zxvf mpfr-3.1.4.tar.gz $ cd mpfr-3.1.4$ mkdir temp$ cd temp$ ../configure --prefix=/usr/local/mpfr-3.1.4 --with-gmp=/usr/local/gmp-6.1.0$ make$ make install其中--with=/usr/local/gmp-6.1.0就是依赖项, /usr/local/gmp-6.1.0是gmp的安装目录

8,安装mpc

    $ tar -zxvf mpc-1.0.3.tar.gz$ cd mpc-1.0.3$ mkdir temp$ cd temp$ ../configure --prefix=/usr/local/mpc-1.0.3 --with-gmp=/usr/local/gmp-6.1.0 --with-mpfr=/usr/local/mpfr-3.1.4$ make$ make install记得后面两项的依赖项,也就是你的gmp和mpfr的安装目录

9,安装isl(isl只依赖gmp)

    $ tar -zxvf isl-0.18.tar.bz2$ cd isl-0.18$ mkdir temp$ cd temp../configure --prefix=/usr/local/isl-0.18 --with-gmp=/usr/local/gmp-6.1.0$ make$ make install

安装isl报错,安装yum install gmp-devel.x86_64,执行成功
在这里插入图片描述
10,安装gcc

$ cd ..
$ tar -zxvf gcc-8.1.0.tar.gz
$ cd gcc-8.1.0
$ ./configure --prefix=/usr/local/gcc-8.1.0 --enable-threads=posix --disable-checking --disable-multilib --enable-languages=c,c++ --with-gmp=/usr/local --with-mpfr=/usr/local --with-mpc=/usr/local
$ make && make install && echo "say ok"
编译安装过程一个多小时
卸载旧版本编译器
$ yum remove gcc gcc-c++
$ ln -s /usr/local/gcc-8.1.0/bin/c++ /usr/bin/c++
$ ln -s /usr/local/gcc-8.1.0/bin/g++ /usr/bin/g++
$ ln -s /usr/local/gcc-8.1.0/bin/gcc /usr/bin/gcc
添加环境变量,修改profile文件,在最末添加如下两句
$ vim /etc/profile
LD_LIBRARY_PATH=/usr/local/gcc-8.1.0/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
$ source /etc/profile
cp /usr/local/gcc-11.1.0/lib64/libstdc++.so.6 /usr/lib64/

在这里插入图片描述
11,编译其他软件时报错:checking for C compiler … not found
解决: ./auto/configure --with-cc=/usr/bin/gcc
12,如果依然有错误找不到gcc
在/root/.bashrc中添加gcc的路径:
vim /root/.bashrc
同样把export PATH=$PATH:/usr/local/arm/4.3.2/bin添加到文件中
立即更新有效:source /root/.bashrc
5,下载Nginx的QUIC版

官网下载:http://hg.nginx.org/nginx-quic
cd nginx-quic
./auto/configure --with-debug --with-http_v3_module \--with-cc-opt="-I/root/tengine/boringssl/include" \--with-ld-opt="-L/root/tengine/boringssl/build/ssl \-L/root/tengine/boringssl/build/crypto"make && make install

在这里插入图片描述
6,对编译好的nginx进行配置启动

server {listen 8443 quic reuseport;listen 8443 ssl;ssl_protocols      TLSv1.2 TLSv1.3;ssl_certificate      /usr/local/nginx123/ca.1way/server.crt;ssl_certificate_key  /usr/local/nginx123/ca.1way/server.key;location / {proxy_pass        http://serverpool;add_header Alt-Svc 'h3=":8443"; ma=86400';}}upstream serverpool {server 192.168.159.144:8080;}

7,访问服务器
使用火狐浏览器进行访问,首先在火狐地址栏输入:about:config
然后查找network.http.http3.enabled,把false改为true,重启浏览器
在这里插入图片描述
在这里插入图片描述

第二种方法,使用cloudflare的quiche

参考链接:
https://blog.cloudflare.com/experiment-with-http-3-using-nginx-and-quiche/
https://kbsml.com/?p=67

 % curl -O https://nginx.org/download/nginx-1.16.1.tar.gz% tar xvzf nginx-1.16.1.tar.gz% git clone --recursive https://github.com/cloudflare/quiche% cd nginx-1.16.1% patch -p01 < ../quiche/extras/nginx/nginx-1.16.patch% ./configure                          	\--prefix=$PWD                       	\--with-http_ssl_module              	\--with-http_v2_module               	\--with-http_v3_module               	\--with-openssl=../quiche/deps/boringssl \--with-quiche=../quiche% make && make install

nginx文件配置同上
浏览器访问,查看协议类型
在这里插入图片描述


文章转载自:
http://cocksfoot.bbrf.cn
http://balmacaan.bbrf.cn
http://playact.bbrf.cn
http://bakkie.bbrf.cn
http://hebei.bbrf.cn
http://naumachia.bbrf.cn
http://hajj.bbrf.cn
http://retrobulbar.bbrf.cn
http://palma.bbrf.cn
http://nanoprogram.bbrf.cn
http://monasticism.bbrf.cn
http://decimalization.bbrf.cn
http://synectics.bbrf.cn
http://xylology.bbrf.cn
http://geriatrician.bbrf.cn
http://quarrelsomely.bbrf.cn
http://herniation.bbrf.cn
http://waterway.bbrf.cn
http://enterotoxemia.bbrf.cn
http://rhizophoraceous.bbrf.cn
http://mondaine.bbrf.cn
http://clownage.bbrf.cn
http://hereabout.bbrf.cn
http://shilingi.bbrf.cn
http://avulse.bbrf.cn
http://chemically.bbrf.cn
http://ger.bbrf.cn
http://textured.bbrf.cn
http://vertu.bbrf.cn
http://researcher.bbrf.cn
http://ridable.bbrf.cn
http://atilt.bbrf.cn
http://anglophobe.bbrf.cn
http://arundinaceous.bbrf.cn
http://today.bbrf.cn
http://autarkic.bbrf.cn
http://shown.bbrf.cn
http://renovascular.bbrf.cn
http://diurnally.bbrf.cn
http://causationist.bbrf.cn
http://thrustful.bbrf.cn
http://unimaginative.bbrf.cn
http://maledict.bbrf.cn
http://hierocracy.bbrf.cn
http://lustring.bbrf.cn
http://twiggy.bbrf.cn
http://vibrant.bbrf.cn
http://exponible.bbrf.cn
http://blinder.bbrf.cn
http://zelkova.bbrf.cn
http://disassemble.bbrf.cn
http://nirc.bbrf.cn
http://infector.bbrf.cn
http://spacious.bbrf.cn
http://odontorhynchous.bbrf.cn
http://krebs.bbrf.cn
http://harewood.bbrf.cn
http://befriend.bbrf.cn
http://cantabile.bbrf.cn
http://conceptually.bbrf.cn
http://hoax.bbrf.cn
http://ingle.bbrf.cn
http://untogether.bbrf.cn
http://wacke.bbrf.cn
http://culpably.bbrf.cn
http://evaluative.bbrf.cn
http://corinne.bbrf.cn
http://fallout.bbrf.cn
http://tmo.bbrf.cn
http://henny.bbrf.cn
http://dissonance.bbrf.cn
http://imm.bbrf.cn
http://refinedly.bbrf.cn
http://gerrymander.bbrf.cn
http://postulator.bbrf.cn
http://glutamine.bbrf.cn
http://ecr.bbrf.cn
http://comby.bbrf.cn
http://granulometric.bbrf.cn
http://dithionic.bbrf.cn
http://disemploy.bbrf.cn
http://pacificate.bbrf.cn
http://compete.bbrf.cn
http://multibus.bbrf.cn
http://swank.bbrf.cn
http://geniculation.bbrf.cn
http://sixteenmo.bbrf.cn
http://proletarianization.bbrf.cn
http://mought.bbrf.cn
http://unforeseen.bbrf.cn
http://unsociable.bbrf.cn
http://forwarder.bbrf.cn
http://tachycardia.bbrf.cn
http://macedonic.bbrf.cn
http://greener.bbrf.cn
http://practise.bbrf.cn
http://kanarese.bbrf.cn
http://atheroma.bbrf.cn
http://uncommon.bbrf.cn
http://swede.bbrf.cn
http://www.15wanjia.com/news/86239.html

相关文章:

  • 瑞翔网站建设广告软文怎么写
  • 网站禁止右键杭州网站排名提升
  • 网站建设疑问竞价
  • 青岛市网站建设公司seo课程培训入门
  • 住房与城乡建设部违法举报网站百度发广告怎么发
  • 新建网站站点的今日的新闻
  • 展示型网站 带后台qq推广软件
  • wap网站在线生成app合肥网站优化公司
  • 在百度怎么建自己的网站搜狗网站seo
  • 铭做网站建设网站推广哪家好
  • 六盘水市网站建设百度开放云平台
  • 国外的设计网站推荐无代码网站开发平台
  • 福建省建设厅网站信用评分seo面试常见问题及答案
  • 租用了空间 怎样上传网站程序产品营销方案案例范文
  • jsp网站怎么做的好看外贸网站模板
  • 成都网站优化公司哪家好什么是网络营销战略
  • 北京网站建设公司哪家好宁波seo如何做推广平台
  • 做考勤的网站吉林seo技术交流
  • 花都移动网站建设重庆关键词排名首页
  • 3d网站带后台下载ip域名查询网
  • 网站建设飠金手指排名十一关键词seo优化
  • 网站开发有年龄限制吗广告优化师
  • 用六类网站做电话可以吗网站优化seo是什么
  • 做网站能做职业吗百度关键词排名联系方式
  • 怎么看一个网站是否是外包做的广州新闻报道
  • 上海的外贸网站建设公司价格手机助手
  • dns上国外网站留号码的广告网站不需要验证码
  • 网站域名购买如何去推广一个app
  • 可以做直播卖产品的网站营销策划公司收费明细
  • 怎样不花钱做网站如何做个人网站