百度CDN 加速教程

百度CDN 加速教程


国内免费的CDN很多,测试了3个CDN免费版本的腾讯cdn、百度cdn、七牛cdn,这里写下教程及对比。

CND对比腾讯百度七牛
免费流量新用户送120G
20G/月(6个月)
10G/天10G/月
接入方式CNAME接入NS接入
CNAME接入
CNAME接入
源端口支持不支持不支持
特点自定义源端口2种接入方式,支持
泛域名,3种记录
A、MX、CNAME
自定义源端口

教程开始,先注册账号、实名!!!

百度CDN地址:https://su.baidu.com/console/index.html

1.配置加速域名

登录后,我的网站——>添加网站——>选择接入方式(NS、CNAME)

https://qnimg.ffing.cn/wp-content/uploads/2021/03/image-30-1024x269.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

2.CDN接入(两种方式)

  • 第一种方式NS接入:通过修改DNS直接解析,实现CDN缓存加速,支持泛域名解析
https://qnimg.ffing.cn/wp-content/uploads/2021/03/image-31-1024x353.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
https://qnimg.ffing.cn/wp-content/uploads/2021/03/image-32-1024x282.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

获取DNS后,我们需要去修改域名的DNS地址,实现域名加速解析,我这里以 阿里云修改DNS为例,进入阿里云控制台——>域名——>域名管理——>DNS修改——>同步

https://qnimg.ffing.cn/wp-content/uploads/2021/03/image-33-1024x285.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
https://qnimg.ffing.cn/wp-content/uploads/2021/03/image-35-1024x194.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
https://qnimg.ffing.cn/wp-content/uploads/2021/03/image-36.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
https://qnimg.ffing.cn/wp-content/uploads/2021/03/image-37-1024x170.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

DNS修改完成后,返回百度CDN选择免费版,即可

https://qnimg.ffing.cn/wp-content/uploads/2021/03/image-38-1024x219.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
  • 第二种方式CNAME接入,生成别名CNAME地址,再修改解析CNAME地址
https://qnimg.ffing.cn/wp-content/uploads/2021/03/image-41-1024x250.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
https://qnimg.ffing.cn/wp-content/uploads/2021/03/image-42-1024x364.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
https://qnimg.ffing.cn/wp-content/uploads/2021/03/image-43-1024x279.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

复制CNAME地址,解析到自己的CNAME地址,这里以阿里云域名解析为例

https://qnimg.ffing.cn/wp-content/uploads/2021/03/image-47-1024x184.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

添加完成后,返回百度CDN ,选择免费版即可

此图像的alt属性为空;文件名为image-38-1024x219.png

3.检测CDN是否成功

再域名管理,点击“验证”

https://qnimg.ffing.cn/wp-content/uploads/2021/03/image-39-1024x196.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
https://qnimg.ffing.cn/wp-content/uploads/2021/03/image-40-1024x136.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
https://qnimg.ffing.cn/wp-content/uploads/2021/03/image-48-1024x176.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
good good study, day day up!

发表评论

textsms
account_circle
email

百度CDN 加速教程
国内免费的CDN很多,测试了3个CDN免费版本的腾讯cdn、百度cdn、七牛cdn,这里写下教程及对比。 CND对比腾讯百度七牛免费流量新用户送120G20G/月(6个月)10G/天10G/月接入方式CNAME接…
扫描二维码继续阅读
2021-03-18