<?xml version="1.0" encoding="utf-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><title>紫欧博客</title><link>https://www.zobk.com/article/</link><description>互联网综合资源免费分享的博客!</description><item><title>cdnfly开心版最新搭建教程</title><link>https://www.zobk.com/article/post/15.html</link><description>&lt;h3 cat-index=&quot;0&quot;&gt;更新日志&lt;/h3&gt;&lt;p&gt;&lt;span style=&quot;font-size: 18px;&quot;&gt;由于更新日志过多只展示部分更新&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://www.zobk.com/article/post/10.html&quot; target=&quot;_blank&quot; textvalue=&quot;详细更新日志点击跳转&quot; style=&quot;font-size: 18px; text-decoration: underline;&quot;&gt;&lt;span style=&quot;font-size: 18px;&quot;&gt;详细更新日志点击跳转&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class=&quot;core-next-dh-shortcode&quot; style=&quot;padding: 0px; margin: 0px 0px 10px; box-sizing: border-box; display: inline-block; vertical-align: top; width: 251.594px; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;a href=&quot;https://www.zobk.com/article/post/10.html&quot; target=&quot;_blank&quot; class=&quot;core-next-dh-shortcode-url dh-body-a&quot; style=&quot;padding: 10px; margin: 0px; box-sizing: border-box; transition: top 0.3s ease 0s; cursor: var(--cursor-pointer); display: flex; gap: 10px; align-items: stretch; border: 1px solid rgb(240, 240, 240); border-radius: 5px; position: relative; top: 0px;&quot;&gt;&lt;div class=&quot;dh-icon&quot; style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; width: 40px; flex-shrink: 0; color: rgb(255, 255, 255);&quot;&gt;&lt;div class=&quot;corepress-img-none&quot; style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; height: 40px; text-align: center; line-height: 40px; border-radius: 50%; background-color: rgb(77, 208, 225);&quot;&gt;主&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;dh-body&quot; style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; flex: 1 1 0%; width: 0px;&quot;&gt;&lt;div class=&quot;dh-name&quot; title=&quot;主控更新日志&quot; style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; text-wrap: nowrap;&quot;&gt;主控更新日志&lt;/div&gt;&lt;div class=&quot;dh-des&quot; title=&quot;点击跳转查看主控更新日志&quot; style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; font-size: 12px; overflow: hidden; text-overflow: ellipsis; text-wrap: nowrap;&quot;&gt;点击跳转查看主控更新日志&lt;/div&gt;&lt;/div&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;core-next-dh-shortcode&quot; style=&quot;padding: 0px; margin: 0px 0px 10px; box-sizing: border-box; display: inline-block; vertical-align: top; width: 251.594px; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;a href=&quot;https://www.zobk.com/article/post/14.html&quot; target=&quot;_blank&quot; class=&quot;core-next-dh-shortcode-url dh-body-a&quot; style=&quot;padding: 10px; margin: 0px; box-sizing: border-box; transition: top 0.3s ease 0s; cursor: var(--cursor-pointer); display: flex; gap: 10px; align-items: stretch; border: 1px solid rgb(240, 240, 240); border-radius: 5px; position: relative; top: 0px;&quot;&gt;&lt;div class=&quot;dh-icon&quot; style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; width: 40px; flex-shrink: 0; color: rgb(255, 255, 255);&quot;&gt;&lt;div class=&quot;corepress-img-none&quot; style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; height: 40px; text-align: center; line-height: 40px; border-radius: 50%; background-color: rgb(77, 182, 172);&quot;&gt;节&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;dh-body&quot; style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; flex: 1 1 0%; width: 0px;&quot;&gt;&lt;div class=&quot;dh-name&quot; title=&quot;节点更新日志&quot; style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; text-wrap: nowrap;&quot;&gt;节点更新日志&lt;/div&gt;&lt;div class=&quot;dh-des&quot; title=&quot;点击跳转查看节点更新日志&quot; style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; font-size: 12px; overflow: hidden; text-overflow: ellipsis; text-wrap: nowrap;&quot;&gt;点击跳转查看节点更新日志&lt;/div&gt;&lt;/div&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;span style=&quot;color: #37373A; font-family: HarmonyOS_Medium, system-ui; font-size: 16px; text-wrap: wrap; background-color: #FFFFFF;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 18px;&quot;&gt;2024.10.14 新增自动修复centos安装的yum报错&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 18px;&quot;&gt;2024.10.14 新增自动跟源站保持连接&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 18px;&quot;&gt;2024.10.14 更新cdnfly版本号为5.2.1&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 18px;&quot;&gt;2024.10.16 新增自动检测数据库字段并修复&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 18px;&quot;&gt;2024.11.8 更新nginx防御规则&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 18px; color: #FF0000;&quot;&gt;2024.8.24 全套源码带授权端 需要可以联系站长&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 18px; color: #FF0000;&quot;&gt;本站所有资源禁止用于违法 商用 只可用于测试 并且需要在24小时内删除&lt;/span&gt;&lt;/p&gt;&lt;h2 cat-index=&quot;2&quot;&gt;简最新UI&lt;/h2&gt;&lt;p&gt;&lt;strong style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://zobkarticle.oss-cn-beijing.aliyuncs.com/zb_users/upload/2024/11/202411301732965586101630.png?x-oss-process=style/zobkarticle&quot; title=&quot;QQ截图20241130191630.png&quot; alt=&quot;QQ截图20241130191630.png&quot;/&gt;&lt;/strong&gt;&lt;/p&gt;&lt;h2 cat-index=&quot;2&quot;&gt;旧版UI&lt;/h2&gt;&lt;p&gt;&lt;strong style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;strong style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;br/&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://zobkarticle.oss-cn-beijing.aliyuncs.com/zb_users/upload/2024/11/202411301732965611573939.png?x-oss-process=style/zobkarticle&quot; title=&quot;09e344747f80fd2c9378601b5942d155.png&quot; alt=&quot;09e344747f80fd2c9378601b5942d155.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;h2 cat-index=&quot;2&quot;&gt;简易安装教程&lt;/h2&gt;&lt;p&gt;&lt;span style=&quot;font-size: 18px; color: #FF0000;&quot;&gt;请支持正版 本站仅用于学习研究 不可用于商用以及违法用途&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 18px; color: #FF0000;&quot;&gt;脚本使用赞助方式使用 用于日常维护服务器&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 18px;&quot;&gt;注意!!!已经更新最新脚本 无需再搭建云端!脚本会自动生成!!!并且自动输入到HOST中!&lt;br style=&quot;padding: 0px; margin: 0px; box-sizing: border-box;&quot;/&gt;现在只需要运行脚本就可以安装!!!&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 18px;&quot;&gt;可以直接输入命令进行安装&lt;/span&gt;&lt;/p&gt;&lt;h4 id=&quot;4、安装cdnfly控制面板&quot;&gt;安装cdnfly控制面板&lt;/h4&gt;&lt;p&gt;&lt;span style=&quot;font-size: 18px; color: #FF0000;&quot;&gt;输入指令前 安装前先换一下源&lt;/span&gt;&lt;span style=&quot;font-size: 18px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://www.zobk.com/article/post/9.html&quot; target=&quot;_blank&quot; textvalue=&quot;点我跳转查看教程&quot; style=&quot;font-size: 18px; text-decoration: underline;&quot;&gt;&lt;span style=&quot;font-size: 18px;&quot;&gt;点我跳转查看教程&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-php&quot;&gt;curl&amp;nbsp;-fsSL&amp;nbsp;https://cdn.91ma.com/httpcdnfly/master.sh&amp;nbsp;-o&amp;nbsp;master.sh&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;chmod&amp;nbsp;+x&amp;nbsp;master.sh&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;./master.sh&amp;nbsp;--es-dir&amp;nbsp;/home/es&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;font-size: 18px; color: #FF0000;&quot;&gt;以下为详细的安装教程↓&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;strong style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;strong style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;br/&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/p&gt;&lt;h2 id=&quot;一、前言&quot; cat-index=&quot;3&quot;&gt;一、前言&lt;/h2&gt;&lt;p&gt;本文记录一下使用&amp;nbsp;&lt;a href=&quot;http://www.cdnfly.cn/&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;[Cdnfly - 自建cdn|防CC攻击|cdn软件|cdn系统]&lt;/a&gt;&amp;nbsp;搭建CDN系统，保姆级教程 适合小白食用&lt;/p&gt;&lt;p&gt;个人感觉&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;自建CDN&lt;/span&gt;&lt;/code&gt;和&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;反代网站&lt;/span&gt;&lt;/code&gt;效果都差不多，都可以实现加速 缓存 防攻击等功能，但我暂时还不是很懂nginx相关配置，相较而言 自建CDN更容易批量维护和管理各节点&lt;/p&gt;&lt;p&gt;官方安装文档：&lt;a href=&quot;http://doc.cdnfly.cn/1791543&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;安装说明 · Cdnfly使用文档&lt;/a&gt;&lt;/p&gt;&lt;h2 id=&quot;二、准备&quot; cat-index=&quot;4&quot;&gt;二、准备&lt;/h2&gt;&lt;blockquote style=&quot;padding: 10px; margin: 0px; box-sizing: border-box; background-image: ; background-position-x: ; background-position-y: ; background-size: ; background-repeat: ; background-attachment: ; background-origin: ; background-clip: ; border-radius: 5px; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px; text-wrap: wrap;&quot;&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word;&quot;&gt;主控和被控均不能在 已安装nginx的情况下 执行安装命令，必须确保80 443端口未被占用!!!&lt;/p&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word;&quot;&gt;系统必须为centos7或ubuntu16.04 !!! debian11 ubuntu20 centos8 centos6等系统都不支持&lt;/p&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word;&quot;&gt;主控需开放80 88 443 9200端口&lt;/p&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word;&quot;&gt;节点需要开放 80 443 5000端口&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;一台最小4GB内存的服务器(vps)做主控(cdn面板控制台)&lt;/p&gt;&lt;p&gt;若干服务器做CDN节点&lt;/p&gt;&lt;p&gt;系统：cdnfly主控和被控节点暂时仅支持Centos-7和Ubuntu 16.04系统&lt;/p&gt;&lt;blockquote style=&quot;padding: 10px; margin: 0px; box-sizing: border-box; background-image: ; background-position-x: ; background-position-y: ; background-size: ; background-repeat: ; background-attachment: ; background-origin: ; background-clip: ; border-radius: 5px; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px; text-wrap: wrap;&quot;&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word;&quot;&gt;本文以一台centos7系统的hetzner 4GB内存vps&amp;nbsp;&lt;code style=&quot;padding: 0px 4px; margin: 0px 0px 2px 2px; box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; display: inline-block; font-size: 14px; border-radius: 4px; color: rgb(245, 108, 108); background-color: rgb(253, 226, 226);&quot;&gt;167.235.134.18&lt;/code&gt;&amp;nbsp;做主控&lt;/p&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word;&quot;&gt;一台任何系统的vps&amp;nbsp;&lt;code style=&quot;padding: 0px 4px; margin: 0px 0px 2px 2px; box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; display: inline-block; font-size: 14px; border-radius: 4px; color: rgb(245, 108, 108); background-color: rgb(253, 226, 226);&quot;&gt;156.238.251.5&lt;/code&gt;&amp;nbsp;搭建伪装授权站点，即cdnfly自建云端&lt;/p&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word;&quot;&gt;一台centos7系统的DO纽约 512MB内存vps&amp;nbsp;&lt;code style=&quot;padding: 0px 4px; margin: 0px 0px 2px 2px; box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; display: inline-block; font-size: 14px; border-radius: 4px; color: rgb(245, 108, 108); background-color: rgb(253, 226, 226);&quot;&gt;192.241.156.51&lt;/code&gt;&amp;nbsp;做节点2 接管中国大陆移动以及海外等其他流量&lt;/p&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word;&quot;&gt;一台centos7系统的DO新加坡 512MB内存vps&amp;nbsp;&lt;code style=&quot;padding: 0px 4px; margin: 0px 0px 2px 2px; box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; display: inline-block; font-size: 14px; border-radius: 4px; color: rgb(245, 108, 108); background-color: rgb(253, 226, 226);&quot;&gt;157.245.154.23&lt;/code&gt;&amp;nbsp;做节点2 接管中国大陆的电信和联通流量&lt;/p&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word;&quot;&gt;为什么用DO 主要是我就知道这一家有0.5GB小内存，虽然这款比一些4GB内存的都贵 但为了测试512MB内存可用 还是选择了DO&lt;/p&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word;&quot;&gt;为什么CDN节点机器用0.5GB内存小鸡 大部分廉价的国内优化机器只有0.5GB内存&lt;/p&gt;&lt;/blockquote&gt;&lt;h2 id=&quot;三、cdnfly自建云端&quot; cat-index=&quot;5&quot;&gt;三、cdnfly自建监控云端(没多大用处)&lt;/h2&gt;&lt;p&gt;这一步没有必要看了 需要可以联系我获取&lt;/p&gt;&lt;h2 id=&quot;四、主控服务器设置&quot; cat-index=&quot;6&quot;&gt;四、主控服务器设置&lt;/h2&gt;&lt;p&gt;主控需要开放 80 88 443 9200端口，并且主控和节点机不能安装在同一机器上，会导致80端口冲突&lt;/p&gt;&lt;p&gt;主控若未开启9200 88端口 会导致程序大量占用CPU直至死机，如有任何问题 建议重置elasticsearch&lt;/p&gt;&lt;h4 id=&quot;1、首先更新centos7源&quot;&gt;1、首先更新centos7源&lt;/h4&gt;&lt;pre class=&quot;prism-highlight prism-language-php&quot;&gt;yum&amp;nbsp;update&amp;nbsp;-y&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;yum&amp;nbsp;upgrade&amp;nbsp;-y&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;h4 id=&quot;1、首先更新centos7源&quot; style=&quot;padding-top: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-bottom: 0px; box-sizing: border-box; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/h4&gt;&lt;h4 id=&quot;2、修改主控vps的hosts文件&quot;&gt;2、修改主控vps的hosts文件&lt;/h4&gt;&lt;p&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;可以不做host 脚本会自动生成&lt;/span&gt;&lt;/p&gt;&lt;p&gt;修改主控vps的hosts文件，将 auth.cdnfly.cn、monitor.cdnfly.cn 这2个域名指向刚才的自建云端服务器IP&amp;nbsp;&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;156.238.251.5&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;&lt;p&gt;修改hosts意义是 主控vps请求&amp;nbsp;&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;auth.cdnfly.cn&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;monitor.cdnfly.cn&lt;/span&gt;&lt;/code&gt;&amp;nbsp;这两个网站的内容会直接去&amp;nbsp;&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;156.238.251.5&lt;/span&gt;&lt;/code&gt;&amp;nbsp;这个服务器请求，这样就绕过了官方服务器的验证&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-php&quot;&gt;vi&amp;nbsp;/etc/hosts&amp;nbsp;
156.238.251.5&amp;nbsp;auth.cdnfly.cn&amp;nbsp;monitor.cdnfly.cn&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;h4 id=&quot;3、检查hosts是否生效&quot;&gt;3、检查hosts是否生效&lt;/h4&gt;&lt;pre class=&quot;prism-highlight prism-language-php&quot;&gt;ping&amp;nbsp;auth.cdnfly.cn
ping&amp;nbsp;monitor.cdnfly.cn
#如果都返回&amp;nbsp;51.81.222.246&amp;nbsp;说明hosts已经生效，主控vps请求&amp;nbsp;`auth.cdnfly.cn`&amp;nbsp;`monitor.cdnfly.cn`&amp;nbsp;这两个网站的内容会直接去&amp;nbsp;`51.81.222.246`&amp;nbsp;这个服务器请求，这样就绕过了官方服务器的验证&lt;/pre&gt;&lt;h4 id=&quot;1、首先更新centos7源&quot;&gt;4、安装cdnfly控制面板&lt;/h4&gt;&lt;pre class=&quot;prism-highlight prism-language-php&quot;&gt;curl&amp;nbsp;-fsSL&amp;nbsp;https://cdn.91ma.com/httpcdnfly/master.sh&amp;nbsp;-o&amp;nbsp;master.sh&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;chmod&amp;nbsp;+x&amp;nbsp;master.sh&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;./master.sh&amp;nbsp;--es-dir&amp;nbsp;/home/es&lt;/pre&gt;&lt;figure id=&quot;&quot; class=&quot;highlight sh&quot; data-clipboard-text=&quot;&quot; style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/figure&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;出现下图页面即安装成功，通过 IP&amp;nbsp;&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;http://167.235.134.18\&lt;/span&gt;&lt;/code&gt;&amp;nbsp;直接访问即可&lt;/p&gt;&lt;blockquote style=&quot;padding: 10px; margin: 0px; box-sizing: border-box; background-image: ; background-position-x: ; background-position-y: ; background-size: ; background-repeat: ; background-attachment: ; background-origin: ; background-clip: ; border-radius: 5px; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px; text-wrap: wrap;&quot;&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word;&quot;&gt;如果出现报错等中止安装，大多数情况是你的系统不是centos7或ubuntu16.04，cdnfly开心版只支持centos7或ubuntu16.04系统，其它系统肯定无法正常运行&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;strong&gt;管理员账号和密码： wenjian/wenjian&lt;/strong&gt;&lt;/p&gt;&lt;blockquote style=&quot;padding: 10px; margin: 0px; box-sizing: border-box; background-image: ; background-position-x: ; background-position-y: ; background-size: ; background-repeat: ; background-attachment: ; background-origin: ; background-clip: ; border-radius: 5px; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px; text-wrap: wrap;&quot;&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word;&quot;&gt;5.1.12版本的主控有严重的 安全漏洞&lt;/p&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word;&quot;&gt;普通用户生成的API通过某些方法可以拿到管理员权限，请自行根据 此方法 修复&lt;/p&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word;&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word;&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://zobkarticle.oss-cn-beijing.aliyuncs.com/zb_users/upload/2024/11/202411301732969010892578.png?x-oss-process=style/zobkarticle&quot; title=&quot;20230905143937294806.png&quot; alt=&quot;20230905143937294806.png&quot;/&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;h2 id=&quot;五、CDN节点服务器配置&quot; cat-index=&quot;7&quot;&gt;五、CDN节点服务器配置&lt;/h2&gt;&lt;p&gt;我用了两台做CDN节点，节点需要开放80 443 5000端口&lt;/p&gt;&lt;p&gt;一台centos7系统的DO纽约 512MB内存vps&amp;nbsp;&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;192.241.156.51&lt;/span&gt;&lt;/code&gt;&amp;nbsp;做节点2 接管中国大陆移动以及海外等其他流量&lt;/p&gt;&lt;p&gt;一台centos7系统的DO新加坡 512MB内存vps&amp;nbsp;&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;157.245.154.23&lt;/span&gt;&lt;/code&gt;&amp;nbsp;做节点2 接管中国大陆的电信和联通流量&lt;/p&gt;&lt;p&gt;以节点1&amp;nbsp;&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;192.241.156.51&lt;/span&gt;&lt;/code&gt;&amp;nbsp;为例，节点2&amp;nbsp;&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;157.245.154.23&lt;/span&gt;&lt;/code&gt;&amp;nbsp;同理&lt;/p&gt;&lt;h4 id=&quot;1、更新centos7的源&quot;&gt;1、更新centos7的源&lt;/h4&gt;&lt;pre class=&quot;prism-highlight prism-language-php&quot;&gt;yum&amp;nbsp;update&amp;nbsp;-y&lt;/pre&gt;&lt;h4 id=&quot;2、添加SWAP虚拟内存&quot;&gt;2、添加SWAP虚拟内存&lt;/h4&gt;&lt;blockquote style=&quot;padding: 10px; margin: 0px; box-sizing: border-box; background-image: ; background-position-x: ; background-position-y: ; background-size: ; background-repeat: ; background-attachment: ; background-origin: ; background-clip: ; border-radius: 5px; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px; text-wrap: wrap;&quot;&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word;&quot;&gt;1GB内存及以下的小鸡必须添加SWAP否则会报错，2GB以上内存的vps可自行决定是否添加SWAP&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;centos7添加SWAP我参考的 这篇文章&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-php&quot;&gt;#先用&amp;nbsp;free&amp;nbsp;-m&amp;nbsp;查看一下swap的大小&amp;nbsp;
#1、使用dd命令创建/home/swap这么一个分区文件。文件的大小是1024000个block，一般情况下1个block为1K，所以这里空间是1000MB&amp;nbsp;dd&amp;nbsp;if=/dev/zero&amp;nbsp;of=/home/swap&amp;nbsp;bs=1024&amp;nbsp;count=1024000&amp;nbsp;
#2、接着再把这个分区变成swap分区&amp;nbsp;/sbin/mkswap&amp;nbsp;/home/swap&amp;nbsp;
#3、再接着使用这个swap分区。使其成为有效状态&amp;nbsp;/sbin/swapon&amp;nbsp;/home/swap&amp;nbsp;
#现在再用&amp;nbsp;free&amp;nbsp;-m&amp;nbsp;命令查看一下内存和swap分区大小，就发现增加了512M的空间了&amp;nbsp;
#4、修改/etc/fstab文件，在文件末尾增加如下一行，实现开机自动挂载&amp;nbsp;#vi&amp;nbsp;/etc/fstab&amp;nbsp;/home/swap&amp;nbsp;swap&amp;nbsp;swap&amp;nbsp;defaults&amp;nbsp;0&amp;nbsp;0&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://zobkarticle.oss-cn-beijing.aliyuncs.com/zb_users/upload/2024/11/202411301732969253913537.png?x-oss-process=style/zobkarticle&quot; title=&quot;20230905144009844489.png&quot; alt=&quot;20230905144009844489.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;h4 id=&quot;3、安装被控服务&quot;&gt;3、安装被控服务&lt;/h4&gt;&lt;p&gt;进入cdnfly管理员控制台&amp;gt;&amp;gt;系统管理&amp;gt;&amp;gt;系统升级，复制节点安装命令并在节点1和节点2等CDN节点服务器执行&lt;/p&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://zobkarticle.oss-cn-beijing.aliyuncs.com/zb_users/upload/2024/11/202411301732969470540381.jpg?x-oss-process=style/zobkarticle&quot; title=&quot;nc5hvx.jpg&quot; alt=&quot;nc5hvx.jpg&quot;/&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-php&quot;&gt;curl&amp;nbsp;-fsSL&amp;nbsp;https://cdn.91ma.com/httpcdnfly/agent.sh&amp;nbsp;-o&amp;nbsp;agent.sh&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;chmod&amp;nbsp;+x&amp;nbsp;agent.sh&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;./agent.sh&amp;nbsp;--master-ver&amp;nbsp;v5.1.13&amp;nbsp;--master-ip&amp;nbsp;ip&amp;nbsp;--es-ip&amp;nbsp;ip&amp;nbsp;--es-pwd&amp;nbsp;passwd

###替换--master-ip&amp;nbsp;--es-ip&amp;nbsp;--es-pwd&amp;nbsp;为你自己的，在cdnfly面板查看
&amp;nbsp;###例如我执行的脚本为
curl&amp;nbsp;-fsSL&amp;nbsp;https://cdn.91ma.com/httpcdnfly/agent.sh&amp;nbsp;-o&amp;nbsp;agent.sh&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;chmod&amp;nbsp;+x&amp;nbsp;agent.sh&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;./agent.sh&amp;nbsp;--master-ver&amp;nbsp;v5.1.13&amp;nbsp;--master-ip&amp;nbsp;167.235.134.18&amp;nbsp;--es-ip&amp;nbsp;167.235.134.18&amp;nbsp;--es-pwd&amp;nbsp;OPpESBo9mF&lt;/pre&gt;&lt;p&gt;下图即为安装成功，cdnfly被控服务会自己安装nginx等&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://zobkarticle.oss-cn-beijing.aliyuncs.com/zb_users/upload/2024/11/202411301732969621363476.png?x-oss-process=style/zobkarticle&quot; title=&quot;20230905144045260137.png&quot; alt=&quot;20230905144045260137.png&quot;/&gt;&lt;/p&gt;&lt;h4 id=&quot;4、安装BBR&quot;&gt;4、安装BBR&lt;/h4&gt;&lt;p&gt;从下图就可以看出丢包对BBR的影响有多大&lt;/p&gt;&lt;p&gt;centos安装BBR我用的以下这条命令&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-php&quot;&gt;wget&amp;nbsp;&amp;quot;https://github.com/cx9208/bbrplus/raw/master/ok_bbrplus_centos.sh&amp;quot;&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;chmod&amp;nbsp;+x&amp;nbsp;ok_bbrplus_centos.sh&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;./ok_bbrplus_centos.sh&lt;/pre&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://zobkarticle.oss-cn-beijing.aliyuncs.com/zb_users/upload/2024/11/202411301732969885750394.webp?x-oss-process=style/zobkarticle&quot; title=&quot;20230920051337213852.webp&quot; alt=&quot;20230920051337213852.webp&quot;/&gt;&lt;/p&gt;&lt;h4 id=&quot;5、卸载节点&quot;&gt;5、卸载节点&lt;/h4&gt;&lt;p&gt;如果节点想换到另一台主控或者不想占用80 443 ，可以执行这条命令卸载节点&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-php&quot;&gt;cd&amp;nbsp;/tmp/&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;curl&amp;nbsp;-m&amp;nbsp;5&amp;nbsp;http://dl2.cdnfly.cn/cdnfly/agent_uninstall.sh&amp;nbsp;-o&amp;nbsp;agent_uninstall.sh&amp;nbsp;||&amp;nbsp;curl&amp;nbsp;-m&amp;nbsp;5&amp;nbsp;http://us.centos.bz/cdnfly/agent_uninstall.sh&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;chmod&amp;nbsp;+x&amp;nbsp;agent_uninstall.sh&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;./agent_uninstall.sh&lt;/pre&gt;&lt;h2 id=&quot;六、cdnfly控制台必要配置&quot; cat-index=&quot;8&quot;&gt;六、cdnfly控制台必要配置&lt;/h2&gt;&lt;blockquote&gt;&lt;p&gt;官方安装文档：&lt;a href=&quot;http://doc.cdnfly.cn/1791543&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;安装说明 · Cdnfly使用文档&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;h4 id=&quot;1、添加CDN节点&quot;&gt;1、添加CDN节点&lt;/h4&gt;&lt;p&gt;即主控与被控服务建立连接，添加方法如下图&lt;/p&gt;&lt;p&gt;会提示先修改密码，修改密码在：系统管理&amp;gt;&amp;gt;用户管理&lt;/p&gt;&lt;h2 id=&quot;8、禁用API-多用户必设置-重要重要重要！！！&quot; cat-index=&quot;9&quot;&gt;禁用API(多用户必设置)(重要重要重要！！！)&lt;/h2&gt;&lt;p&gt;&lt;strong&gt;2023.5.21 cdnfly5.1.13存在重大漏洞，普通用户生成的API通过某些方法可以拿到管理员权限，解决方法就是禁用API，首先在&lt;/strong&gt;&amp;nbsp;&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;cdnfly控制台&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;&amp;nbsp;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;系统管理&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;&amp;nbsp;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;系统设置&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;&amp;nbsp;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;用户相关&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;&amp;nbsp;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;限制普通用户只能从此域名登录&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;&amp;nbsp;和&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;限制管理员只能从此域名登录&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;&lt;p&gt;再依次在这两个登录域名设置 禁止 /v1/ 的所有访问，5.1.13版本的&amp;nbsp;&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;/v1&lt;/span&gt;&lt;/code&gt;&amp;nbsp;路径是执行api的必要路径，封禁就可以避免被黑了*&lt;/p&gt;&lt;p&gt;&lt;strong&gt;限制cdnfly从域名登录是避免从源站ip访问到了api&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;限制管理员是二次防火墙，如果黑客获取了权限，但是不知道你的管理员登录地址，他就只能对普通用户更改&lt;/strong&gt;&lt;/p&gt;&lt;h2 id=&quot;八、cdnfly控制台其他配置&quot; cat-index=&quot;11&quot;&gt;cdnfly控制台其他配置&lt;/h2&gt;&lt;h4 id=&quot;1、短信-x2F-邮箱提示&quot;&gt;1、短信/邮箱提示&lt;/h4&gt;&lt;p&gt;这里就是设置SMTP服务，QQ/gmail等都支持SMT发信，可以参考篇记录获取你QQ/gmail的SMTP专用密码：获取QQ/gmail等邮箱的SMTP账号密码&lt;/p&gt;&lt;p&gt;也可以用自己的域名邮箱发件，我在这里演示过使用scaleway的邮件推送服务：邮件推送&lt;/p&gt;&lt;p&gt;主控必须开放相应端口(25/465)才可以连接发件服务器从而正常发件，如果确认cdnfly的SMTP配置没问题但是cdnfly显示无法连接，可以检查主控服务器相应端口是否开放&lt;/p&gt;&lt;h4 id=&quot;2、对接支付&quot;&gt;2、对接支付&lt;/h4&gt;&lt;p&gt;需要支付功能请参考 充值设置&lt;/p&gt;&lt;h4 id=&quot;3、转发&quot;&gt;3、转发&lt;/h4&gt;&lt;p&gt;转发容易封禁端口，不建议用CDN服务器做转发&lt;/p&gt;&lt;h2 id=&quot;九、备份和恢复&quot; cat-index=&quot;12&quot;&gt;备份和恢复&lt;/h2&gt;&lt;p&gt;cdnfly提供了非常简单的备份和恢复功能&lt;/p&gt;&lt;h4 id=&quot;1、备份&quot;&gt;1、备份&lt;/h4&gt;&lt;p&gt;主控默认会每两小时备份数据库，备份默认保留7天（可以自行修改保留天数），备份文件在&amp;nbsp;&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;/data/backup/cdn/&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;&lt;p&gt;除了备份数据库，还需要备份&amp;nbsp;&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;/opt/cdnfly/master/conf&lt;/span&gt;&lt;/code&gt;&amp;nbsp;文件夹下的&amp;nbsp;&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;config.py&lt;/span&gt;&lt;/code&gt;&amp;nbsp;文件(其实记住AES_KEY和LOG_PWD就行了)&lt;/p&gt;&lt;p&gt;恢复时只需要用到这两个文件，为了防止主控失联，建议每天上传备份&lt;/p&gt;&lt;p&gt;每日自动上传备份&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-php&quot;&gt;#我这里只是记录一下我的操作&amp;nbsp;可能不适合你&amp;nbsp;crontab&amp;nbsp;-e&amp;nbsp;0&amp;nbsp;1,13&amp;nbsp;*&amp;nbsp;*&amp;nbsp;*&amp;nbsp;rclone&amp;nbsp;copy&amp;nbsp;/data/backup/cdn/&amp;nbsp;r2:tanglu/cdnfly/backup/vps1&lt;/pre&gt;&lt;h4 id=&quot;1、备份&quot; style=&quot;text-wrap: wrap;&quot;&gt;2、恢复&lt;/h4&gt;&lt;p&gt;此操作参考&lt;a href=&quot;http://doc.cdnfly.cn/FAQ.html#%E6%97%A7%E4%B8%BB%E6%8E%A7%E6%97%A0%E6%B3%95%E6%89%93%E5%BC%80%E7%9A%84%E6%83%85%E5%86%B5&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;cdnfly官网&lt;/a&gt;，亲测有效&lt;/p&gt;&lt;p&gt;&lt;strong&gt;旧主控：&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;将旧主控&amp;nbsp;&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;/data/backup/cdn/&lt;/span&gt;&lt;/code&gt;&amp;nbsp;下的某个时间的数据库备份包 如&amp;nbsp;&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;mysql-20230724-010931.sql.gz&lt;/span&gt;&lt;/code&gt;&amp;nbsp;下载到本地，重命名为&amp;nbsp;&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;cdn.sql.gz&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;&lt;p&gt;将旧主控的&amp;nbsp;&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;/opt/cdnfly/master/conf/config.py&lt;/span&gt;&lt;/code&gt;&amp;nbsp;文件也下载下来&lt;/p&gt;&lt;p&gt;关闭旧主控，这里记得关闭，如果不关闭的话新旧主控同时运行会出现后台任务只创建但不执行，导致新主控无法正常运行&lt;/p&gt;&lt;p&gt;&lt;strong&gt;新主控：&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;首先正常执行安装主控命令：&lt;/p&gt;&lt;p&gt;如果有需要自授权请先搭建云端 修改hosts&lt;/p&gt;&lt;figure class=&quot;highlight plaintext&quot; style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/figure&gt;&lt;pre class=&quot;prism-highlight prism-language-php&quot;&gt;#进入主控root目录&amp;nbsp;cd&amp;nbsp;/root&amp;nbsp;#将上节备份的数据库文件&amp;nbsp;cdn.sql.gz&amp;nbsp;上传到root目录&amp;nbsp;#在root目录下执行以下两条命令&amp;nbsp;恢复数据库&amp;nbsp;curl&amp;nbsp;http://us.centos.bz/cdnfly/restore_master.sh&amp;nbsp;-o&amp;nbsp;restore_master.sh&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;chmod&amp;nbsp;+x&amp;nbsp;restore_master.sh&amp;nbsp;./restore_master.sh&amp;nbsp;#将上节备份的旧主控&amp;nbsp;/opt/cdnfly/master/conf/config.py&amp;nbsp;上传新主控相同位置，实现替换掉新主控的config.py文件&amp;nbsp;#依次执行以下四条命令初始化elasticsearch&amp;nbsp;cd&amp;nbsp;/tmp&amp;nbsp;wget&amp;nbsp;us.centos.bz/cdnfly/int_es.sh&amp;nbsp;-O&amp;nbsp;int_es.sh&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;chmod&amp;nbsp;+x&amp;nbsp;int_es.sh&amp;nbsp;
./int_es.sh&amp;nbsp;/home/es
&amp;nbsp;supervisorctl&amp;nbsp;-c&amp;nbsp;/opt/cdnfly/master/conf/supervisord.conf&amp;nbsp;restart&amp;nbsp;all&amp;nbsp;
#至此主控设置完成，通过旧主控的账号密码进入可以发现&amp;nbsp;节点&amp;nbsp;用户&amp;nbsp;网站&amp;nbsp;日志&amp;nbsp;dns等都恢复了&amp;nbsp;#接下来只需要对旧节点更换IP即可&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;旧节点：&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;需要将旧节点的旧主控IP替换为新主控的IP&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-php&quot;&gt;#依次在ssh登录每个节点并执行下面命令即可&amp;nbsp;#将&amp;nbsp;your_new_ip&amp;nbsp;替换为你自己的新主控IP&amp;nbsp;wget&amp;nbsp;-qO&amp;nbsp;change_ip.sh&amp;nbsp;https://cdn.91ma.com/httpcdnfly/change_ip.sh&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;chmod&amp;nbsp;+x&amp;nbsp;change_ip.sh&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;bash&amp;nbsp;change_ip.sh&amp;nbsp;your_new_ip&lt;/pre&gt;&lt;figure id=&quot;&quot; class=&quot;highlight plaintext&quot; data-clipboard-text=&quot;&quot; style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/figure&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;新节点：&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;新节点安装方式和旧节点安装方式一样，只需要将旧主控IP修改为新主控IP 密码修改为旧主控密码即可&lt;/p&gt;&lt;p&gt;旧主控密码忘记了可以在&amp;nbsp;&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;/opt/cdnfly/master/conf/config.py&lt;/span&gt;&lt;/code&gt;&amp;nbsp;可以找到&lt;/p&gt;&lt;h4 id=&quot;1、首先更新centos7源&quot; style=&quot;padding-top: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-bottom: 0px; box-sizing: border-box; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/h4&gt;&lt;h2 id=&quot;十、杂谈&quot; cat-index=&quot;13&quot;&gt;杂谈&lt;/h2&gt;&lt;p&gt;① 你也可以像我博客一样将境外流量接入到cloudflare加速，国内走优化节点，具体教程可以参考 cloudflare配置详解&lt;/p&gt;&lt;p&gt;② CC测压 注意不要用源站机器去攻击，可能cdnfly为了回源请求成功 给源站IP加了白名单，我之前遇到这个问题纠结好久还以为是cdnfly规则有问题，最后才知道小丑是我自己…&lt;/p&gt;&lt;p&gt;③ 如果源站开启了防御记得将CDN加入白名单&lt;/p&gt;&lt;p&gt;④ 主控迁移可以参考官方 FAQ&lt;/p&gt;&lt;p&gt;⑤ cdnfly支持添加泛域名，只要待添加域名的DNS服务商支持泛域名解析即可&lt;/p&gt;&lt;p&gt;⑥&amp;nbsp;cdnfly统计流量似乎只计算’CDN节点到用户(出站)’这个过程消耗的流量，用户到CDN节点(入站)、CDN节点到源服务器(出站)、源服务器到CDN节点(入站)均不计入套餐流量。如果服务器为双向计费请注意设置价格&lt;br style=&quot;padding: 0px; margin: 0px; box-sizing: border-box;&quot;/&gt;以下是我的测试记录：&lt;/p&gt;&lt;p&gt;我先通过套CDN在客户端跑测速(发包收包流量都大)，测得CDN入站流量 1362MB，出站总流量 371MB，CDN套餐显示流量消耗 233MB&lt;br style=&quot;padding: 0px; margin: 0px; box-sizing: border-box;&quot;/&gt;我又通过客户端批量发包(发包流量小 收包流量大)，测得CDN入站流量 269MB，出站总流量 302MB，CDN套餐显示流量消耗 258MB&lt;/p&gt;&lt;p&gt;⑦ 斯巴达等服务商提供的centos7系统无法安装，需要dd（新的斯巴达centos7镜像已支持）&lt;/p&gt;&lt;p&gt;服务器dd centos7的方法可以看我的这篇记录：常见vps dd windows合集&lt;/p&gt;&lt;p&gt;⑧ 中文域名直接添加会报错，需要在 punycoder.com 将中文字符转换成 xn–sfj3b** 格式添加&lt;/p&gt;&lt;p&gt;⑨ 主控安装好后可以装宝塔吗？主控装完后会占用80 443端口，单纯装个宝塔是只占用8000端口，宝塔再装nginx会占用80端口，很明显你80端口需要给主控，所以你可以改一下宝塔nginx的端口 比如http改为8080 https改为4433，不建议新手尝试&lt;/p&gt;&lt;p&gt;⑩&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;Error： 添加节点失败:原因没有权限&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;错误号： node-23&lt;/span&gt;&lt;/code&gt;&amp;nbsp;应该是密码错了，请前往主控的&amp;nbsp;&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;系统管理&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;&amp;nbsp;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;系统升级&lt;/span&gt;&lt;/code&gt;&amp;nbsp;中查看密码&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sat, 30 Nov 2024 19:08:55 +0800</pubDate></item><item><title>cdnfly节点更新日志</title><link>https://www.zobk.com/article/post/14.html</link><description>&lt;pre class=&quot;prism-highlight prism-language-php&quot;&gt;5.1.17(已经发布在最新节点包)
1.更新&amp;nbsp;最新IP库
2.更新&amp;nbsp;最新蜘蛛库
3.修复&amp;nbsp;新增节点会提示的接口问题
5.1.18---2024.10.24
1.修复&amp;nbsp;节点内存占用过高&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sat, 30 Nov 2024 19:07:52 +0800</pubDate></item><item><title>禁用cdnflyAPI</title><link>https://www.zobk.com/article/post/13.html</link><description>&lt;h2 id=&quot;8、禁用API-多用户必设置-重要重要重要！！！&quot; cat-index=&quot;0&quot;&gt;禁用API(多用户必设置)(重要重要重要！！！)&lt;/h2&gt;&lt;p&gt;2023.5.21 cdnfly5.1.13存在重大漏洞，普通用户生成的API通过某些方法可以拿到管理员权限，解决方法就是禁用API，首先在&amp;nbsp;&lt;strong&gt;&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;cdnfly控制台&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;&amp;nbsp;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;系统管理&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;&amp;nbsp;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;系统设置&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;&amp;nbsp;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;用户相关&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;&amp;nbsp;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;限制普通用户只能从此域名登录&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;&amp;nbsp;和&lt;/span&gt;&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;限制管理员只能从此域名登录&lt;/span&gt;&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;再依次在这两个登录域名设置 禁止 /v1/ 的所有访问，5.1.13版本的&amp;nbsp;&lt;strong&gt;&lt;code&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;/v1&lt;/span&gt;&lt;/code&gt;&lt;/strong&gt;&amp;nbsp;路径是执行api的必要路径，封禁就可以避免被黑了*&lt;/p&gt;&lt;p&gt;限制cdnfly从域名登录是避免从源站ip访问到了api&lt;/p&gt;&lt;p&gt;限制管理员是二次防火墙，如果黑客获取了权限，但是不知道你的管理员登录地址，他就只能对普通用户更改&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sat, 30 Nov 2024 18:47:15 +0800</pubDate></item><item><title>自建本地化cdnfly监控端和脚本端和授权端</title><link>https://www.zobk.com/article/post/12.html</link><description>&lt;p&gt;自建本地化cdnfly监控端和脚本端和授权端&lt;/p&gt;&lt;p&gt;联系站长购买200 RMB&lt;/p&gt;</description><pubDate>Sat, 30 Nov 2024 18:44:24 +0800</pubDate></item><item><title>DD乌班图16</title><link>https://www.zobk.com/article/post/11.html</link><description>&lt;pre class=&quot;prism-highlight prism-language-php&quot;&gt;curl&amp;nbsp;-O&amp;nbsp;https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh&amp;nbsp;

bash&amp;nbsp;reinstall.sh&amp;nbsp;ubuntu&amp;nbsp;16.04

reboot

然后等个十几分钟装好后
账号root
密码123@@@&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sat, 30 Nov 2024 18:42:59 +0800</pubDate></item><item><title>cdnfly更新日志</title><link>https://www.zobk.com/article/post/10.html</link><description>&lt;h3 cat-index=&quot;0&quot;&gt;更新日志&lt;/h3&gt;&lt;p&gt;2023.3.30 修正了第三节”自建云端的错误”，伪装授权站需要一直存在&lt;/p&gt;&lt;p&gt;2023.4.14 新增了cdnfly设置回源host实现反代的介绍&lt;/p&gt;&lt;p&gt;2023.4.24 修复了伪装站点监控失效的情况，更新了cdnfly的节点监控功能说明&lt;/p&gt;&lt;p&gt;2023.5.21&amp;nbsp;cdnfly5.1.13存在重大漏洞，普通用户生成的API通过某些方法可以拿到管理员权限&amp;nbsp;&lt;a href=&quot;https://www.zobk.com/article/post/13.html&quot; target=&quot;_blank&quot;&gt;点击此处查看如何设置&lt;/a&gt;&lt;/p&gt;&lt;p&gt;2023.9.4 更新主控&amp;amp;节点安装命令(https+http)方式进行更新 利用本站脚本&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;2023.9.23 脚本需要赞助后使用 赞助只是为了维持本站的运营!!!&lt;/span&gt;&lt;/strong&gt;&amp;nbsp;&amp;nbsp;&lt;a href=&quot;https://www.zobk.com/article/post/12.html&quot; target=&quot;_blank&quot;&gt;点击我前去购买&lt;/a&gt;&lt;br style=&quot;padding: 0px; margin: 0px; box-sizing: border-box;&quot;/&gt;&lt;/p&gt;&lt;p&gt;2023.9.24 提供付费CDN策略配置 可有效的提高防御!&lt;/p&gt;&lt;p&gt;2023.9.25 更新脚本 本地化部署 支持国内主控&lt;/p&gt;&lt;p&gt;2023.9.26 更新脚本 修复 登录日志404 等多个界面 某些地区出现404的情况&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;2023.10.4 发现很多人在倒卖本站脚本 现在需要联系站长进行加白才能安装&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;2024.5.2 更新脚本 自动选择最优节点添加host&lt;/p&gt;&lt;p&gt;2024.5.6 更新教程 修改cdnfly返回&lt;/p&gt;&lt;p&gt;2024.5.10 修复云端无法TCP监控和ping监控&lt;/p&gt;&lt;p&gt;2024.6.1 修复节点安装报错无法获取agent&lt;/p&gt;&lt;p&gt;2024.7.20 修复CF DNS解析无法生效(暂时不开放)&lt;/p&gt;&lt;p&gt;2024.7.22 更新在线更新脚本&lt;/p&gt;&lt;p&gt;2024.7.22 更新后台&lt;span style=&quot;color: #FF0000;&quot;&gt;在线更新&lt;/span&gt;&lt;/p&gt;&lt;p&gt;2024.7.22 更新版本号为&lt;span style=&quot;color: #FF0000;&quot;&gt;5.1.14&lt;/span&gt;&lt;/p&gt;&lt;p&gt;2024.7.22 排查到&lt;span style=&quot;color: #FF0000;&quot;&gt;cloudflare&lt;/span&gt;有些机器存在问题(已完全修复)&lt;/p&gt;&lt;p&gt;2024.7.22 更新版本号为&lt;span style=&quot;color: #FF0000;&quot;&gt;5.1.15&lt;/span&gt;&lt;/p&gt;&lt;p&gt;2024.7.26 更新QQ机器人 可监控流量 切换策略 查看套餐等....&amp;nbsp;点我查看更新日志(已经停止运营 需要可以联系定制)&lt;/p&gt;&lt;p&gt;2024.8.1 更新云端授权机制&lt;/p&gt;&lt;p&gt;2024.8.1 更新节点检测机制&lt;/p&gt;&lt;p&gt;2024.8.7 更新Ubuntu16的节点修复包(如果没有镜像就自行dd镜像即可)&lt;/p&gt;&lt;p&gt;2024.8.7 新增江苏 泉州&amp;nbsp;&lt;span style=&quot;color: #FF0000;&quot;&gt;等地移动屏蔽解决&lt;/span&gt;(需要技术服务费)&lt;/p&gt;&lt;p&gt;2024.8.10 更新教程 如何修复yum报错&amp;nbsp;&lt;a href=&quot;https://www.zobk.com/article/post/9.html&quot; target=&quot;_blank&quot;&gt;点我跳转&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;2024.8.15 新增cdnfly过移动屏蔽(需要付费联系)&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;2024.8.15 更新cdnfly版本号为5.1.16&lt;/p&gt;&lt;p&gt;2024.8.20 更新DD教程(乌班图16)&amp;nbsp;&lt;a href=&quot;https://www.zobk.com/article/post/11.html&quot; target=&quot;_blank&quot;&gt;点我跳转&lt;/a&gt;&lt;/p&gt;&lt;p&gt;2024.8.24 更新煞13式安装 自动修复源更新源&lt;/p&gt;&lt;p&gt;2024.8.24 更新cdnfly版本号为5.1.17&lt;/p&gt;&lt;p&gt;2024.9.15 修复日志下载 数据统计不准确问题&lt;/p&gt;&lt;p&gt;2024.9.15 修复新增节点会提示的接口问题&lt;/p&gt;&lt;p&gt;2024.9.15 更新最新爬虫库 最新IP库&lt;/p&gt;&lt;p&gt;2024.9.15 修复ZeroSSL证书申请&lt;/p&gt;&lt;p&gt;2024.9.15 修复节点与主控的通信问题&lt;/p&gt;&lt;p&gt;2024.9.15 新增用户端 后台UI(正在完善)&lt;/p&gt;&lt;p&gt;2024.9.15 修复部分机器因为没有修改好导致的证书申请失败&lt;/p&gt;&lt;p&gt;2024.9.15&amp;nbsp;&lt;span style=&quot;color: #FF0000;&quot;&gt;更新cdnfly版本号为5.2.0&lt;/span&gt;&lt;/p&gt;&lt;p&gt;2024.10.14 新增自动修复centos安装的yum报错&lt;/p&gt;&lt;p&gt;2024.10.14 新增自动跟源站保持连接&lt;/p&gt;&lt;p&gt;2024.10.14 更新cdnfly版本号为5.2.1&lt;/p&gt;&lt;p&gt;2024.10.16 新增自动检测数据库字段并修复&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;2024.8.24&amp;nbsp;因其他因素本站将不提供安装服务&lt;br style=&quot;padding: 0px; margin: 0px; box-sizing: border-box;&quot;/&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;2024.8.24 全套源码带授权端 需要可以联系站长&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sat, 30 Nov 2024 18:41:24 +0800</pubDate></item><item><title>CentOS7 yum安装报错“Could not resolve host: mirrorlist.centos.org； Name or service not known“之解决办法（换源）</title><link>https://www.zobk.com/article/post/9.html</link><description>&lt;h2 cat-index=&quot;0&quot;&gt;一.一键更换脚本&lt;/h2&gt;&lt;pre class=&quot;prism-highlight prism-language-php&quot;&gt;一.
国内源
bash&amp;nbsp;&amp;lt;(curl&amp;nbsp;-sSL&amp;nbsp;https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh)

#推荐使用一
二.
国内
bash&amp;nbsp;&amp;lt;(curl&amp;nbsp;-sSL&amp;nbsp;https://linuxmirrors.cn/main.sh)
国内教育网
bash&amp;nbsp;&amp;lt;(curl&amp;nbsp;-sSL&amp;nbsp;https://linuxmirrors.cn/main.sh)&amp;nbsp;--edu&amp;nbsp;
海外地区
bash&amp;nbsp;&amp;lt;(curl&amp;nbsp;-sSL&amp;nbsp;https://linuxmirrors.cn/main.sh)&amp;nbsp;--abroad&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h2 cat-index=&quot;1&quot;&gt;二.手动更换&lt;/h2&gt;&lt;p&gt;CentOS7更换镜像源&lt;br style=&quot;padding: 0px; margin: 0px; box-sizing: border-box;&quot;/&gt;1、先安装wget&lt;/p&gt;&lt;p&gt;yum install -y wget&lt;br style=&quot;padding: 0px; margin: 0px; box-sizing: border-box;&quot;/&gt;2、打开阿里镜像http://mirrors.aliyun.com/&lt;/p&gt;&lt;p&gt;点击，帮助，查看详情：&lt;br style=&quot;padding: 0px; margin: 0px; box-sizing: border-box;&quot;/&gt;3、下载CentOS 7的对应的repo文件&lt;/p&gt;&lt;p&gt;wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo&lt;br style=&quot;padding: 0px; margin: 0px; box-sizing: border-box;&quot;/&gt;#或者&lt;br style=&quot;padding: 0px; margin: 0px; box-sizing: border-box;&quot;/&gt;curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo&lt;br style=&quot;padding: 0px; margin: 0px; box-sizing: border-box;&quot;/&gt;4、更新镜像源&lt;/p&gt;&lt;p&gt;yum clean all&lt;/p&gt;&lt;p&gt;yum makecache&lt;/p&gt;&lt;p&gt;yum -y update&lt;/p&gt;&lt;p&gt;执行完上面三行命令就好了&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sat, 30 Nov 2024 18:36:40 +0800</pubDate></item><item><title>自建本地化cdnfly监控端和脚本端</title><link>https://www.zobk.com/article/post/8.html</link><description>&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word; text-wrap: wrap; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px;&quot;&gt;我们先给授权端安装一个宝塔&lt;/p&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word; text-wrap: wrap; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px;&quot;&gt;需要安装nginx和php7.2&lt;/p&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word; text-wrap: wrap; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px;&quot;&gt;搭建一个站点，绑定域名auth.cdnfly.cn、monitor.cdnfly.cn 和你&lt;span style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; color: #FF0000;&quot;&gt;自己的域名&lt;/span&gt;,并根据文件中的nginx伪静态配置设置伪静态。&lt;/p&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word; text-wrap: wrap; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px;&quot;&gt;比如你的域名是123.com 那就绑定123.com&lt;/p&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word; text-wrap: wrap; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px;&quot;&gt;我用宝塔搭建大概为这样：&lt;/p&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word; text-wrap: wrap; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px;&quot;&gt;&lt;a href=&quot;https://www.qcyqq.com/wp-content/uploads/2023/09/20230905143841569313.png&quot; data-fancybox=&quot;gallery&quot; target=&quot;_blank&quot; style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; transition: color 0.4s ease 0s; cursor: var(--cursor-pointer);&quot;&gt;&lt;/a&gt;&lt;a class=&quot;core-next-img&quot; href=&quot;https://www.qcyqq.com/wp-content/uploads/2023/09/20230905143841569313.png&quot; data-group=&quot;nogroup&quot; data-id=&quot;1&quot; data-index=&quot;1&quot; target=&quot;_blank&quot; style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; transition: color 0.4s ease 0s; cursor: var(--cursor-pointer);&quot;&gt;&lt;img decoding=&quot;async&quot; src=&quot;https://www.qcyqq.com/wp-content/uploads/2023/09/20230905143841569313.png&quot; style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; max-width: 100%; height: auto; vertical-align: top; box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 5px 0px;&quot;/&gt;&lt;/a&gt;&lt;a class=&quot;core-next-img&quot; href=&quot;https://www.qcyqq.com/wp-content/uploads/2023/09/20230905143728655260.png&quot; data-group=&quot;nogroup&quot; data-id=&quot;2&quot; data-index=&quot;2&quot; target=&quot;_blank&quot; style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; transition: color 0.4s ease 0s; cursor: var(--cursor-pointer);&quot;&gt;&lt;img decoding=&quot;async&quot; src=&quot;https://www.qcyqq.com/wp-content/uploads/2023/09/20230905143728655260.png&quot; style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; max-width: 100%; height: auto; vertical-align: top; box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 5px 0px;&quot;/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word; text-wrap: wrap; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px;&quot;&gt;然后我们进行下一步&lt;/p&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word; text-wrap: wrap; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px;&quot;&gt;解析一个域名到宝塔的授权端上&lt;/p&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word; text-wrap: wrap; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px;&quot;&gt;跟auth.cdnfly.cn添加到一起&lt;/p&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word; text-wrap: wrap; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px;&quot;&gt;然后我们上传源码压缩包&lt;/p&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word; text-wrap: wrap; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px;&quot;&gt;压缩包中的代码需要修改以下内容&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-php&quot;&gt;cdnfly-agent-v5.1.16
cdnfly-master-v5.2.1
master.sh
agent.sh
api.py
#把这些全部改成你自己的域名&lt;/pre&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word; text-wrap: wrap; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px;&quot;&gt;修改内容为&lt;/p&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word; text-wrap: wrap; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px;&quot;&gt;&amp;quot;你的域名&amp;quot;改成你自己的域名&lt;/p&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word; text-wrap: wrap; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px;&quot;&gt;&amp;quot;你的QQ&amp;quot;改成你自己的联系方式&lt;/p&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word; text-wrap: wrap; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px;&quot;&gt;&amp;quot;你的版权&amp;quot;改成你自己的版权&lt;/p&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word; text-wrap: wrap; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px;&quot;&gt;&amp;quot;你的授权端&amp;quot;改成你自己的宝塔IP&lt;/p&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word; text-wrap: wrap; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px;&quot;&gt;安装主控教程&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-php&quot;&gt;#命令
curl&amp;nbsp;-fsSL&amp;nbsp;https:/你的域名/httpcdnfly/master.sh&amp;nbsp;-o&amp;nbsp;master.sh&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;chmod&amp;nbsp;+x&amp;nbsp;master.sh&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;./master.sh&amp;nbsp;--es-dir&amp;nbsp;/home/es&lt;/pre&gt;&lt;p&gt;详细教程&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://www.zobk.com/article/post/15.html&quot; target=&quot;_blank&quot;&gt;点击前往&lt;/a&gt;&lt;/p&gt;</description><pubDate>Sat, 30 Nov 2024 18:24:07 +0800</pubDate></item><item><title>Zblog修改文章默认字体大小，如何修改zblog默认字体的大小</title><link>https://www.zobk.com/article/post/7.html</link><description>&lt;p&gt;zblog是一个开源免费、小巧强大的博客程序与 CMS 建站系统，非常适合做资源发布系统。&lt;/p&gt;&lt;p&gt;有点遗憾的是Zblog文章的默认字体大小是14号确实有点小啊，每次编辑文章的时候都要去改成16或者18，使原本愉快的码字变的有点不爽这里告诉各位小编们怎么修改这个默认字体大小。&lt;/p&gt;&lt;p&gt;网站根目录/zb_users/plugin/UEditor/ueditor.config.php&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-bottom: 10px; padding: 0px; outline: 0px; border: 0px; vertical-align: baseline; font-size: 15px; line-height: 27px; position: relative; color: rgba(58, 58, 58, 0.88); text-indent: 2em; font-family: HarmonyOS_Sans; text-align: justify; text-wrap: wrap; background-color: rgba(255, 255, 255, 0.68);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; outline: 0px; border: 0px; vertical-align: baseline; font-size: 16px; text-wrap: unset !important;&quot;&gt;&lt;a class=&quot;view-image&quot; href=&quot;https://www.hcw3.cn/zb_users/upload/2022/05/202205011651383758574616.jpg&quot; data-fancybox=&quot;gallery&quot; title=&quot;Zblog修改文章默认字体大小，如何修改zblog默认字体的大小&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; background: transparent; color: rgb(51, 51, 51); vertical-align: baseline; text-decoration-line: none; -webkit-tap-highlight-color: rgba(255, 0, 0, 0); transition: all 0.3s ease-in-out 0s; font-weight: bold;&quot;&gt;&lt;img src=&quot;https://zobkarticle.oss-cn-beijing.aliyuncs.com/zb_users/upload/2024/11/20241130142618173294797889115.jpg?x-oss-process=style/zobkarticle&quot; alt=&quot;Zblog修改文章默认字体大小，如何修改zblog默认字体的大小&quot; title=&quot;Zblog修改文章默认字体大小，如何修改zblog默认字体的大小&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;搜14(这个是默认字体的大小参数)替换成16（你也可以替换成你想要的大小）&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-bottom: 10px; padding: 0px; outline: 0px; border: 0px; vertical-align: baseline; font-size: 15px; line-height: 27px; position: relative; color: rgba(58, 58, 58, 0.88); text-indent: 2em; font-family: HarmonyOS_Sans; text-align: justify; text-wrap: wrap; background-color: rgba(255, 255, 255, 0.68);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; outline: 0px; border: 0px; vertical-align: baseline; font-size: 16px; text-wrap: unset !important;&quot;&gt;&lt;a class=&quot;view-image&quot; href=&quot;https://www.hcw3.cn/zb_users/upload/2022/05/202205011651383773821683.jpg&quot; data-fancybox=&quot;gallery&quot; title=&quot;Zblog修改文章默认字体大小，如何修改zblog默认字体的大小&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; background: transparent; color: rgb(70, 147, 233); vertical-align: baseline; text-decoration-line: none; -webkit-tap-highlight-color: rgba(255, 0, 0, 0); transition: all 0.3s ease-in-out 0s; cursor: pointer; font-weight: bold;&quot;&gt;&lt;img src=&quot;https://zobkarticle.oss-cn-beijing.aliyuncs.com/zb_users/upload/2024/11/20241130142618173294797851850.jpg?x-oss-process=style/zobkarticle&quot; alt=&quot;Zblog修改文章默认字体大小，如何修改zblog默认字体的大小&quot; title=&quot;Zblog修改文章默认字体大小，如何修改zblog默认字体的大小&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sat, 30 Nov 2024 14:25:19 +0800</pubDate></item><item><title>自建cdnfly5.2.1保姆级教程</title><link>https://www.zobk.com/article/post/6.html</link><description>&lt;h2 cat-index=&quot;0&quot;&gt;准备&lt;/h2&gt;&lt;p&gt;1.百度下载notepad++和7z压缩软件&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 18px;&quot;&gt;2.准备好5.2.1源码


 &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 18px;&quot;&gt;3.注意事项


 &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 18px;&quot;&gt;本站的所有教程 所有文件以及源码 不支持用于违法违规 并且需要24H内删除源码&lt;/span&gt;&lt;/p&gt;&lt;h2 cat-index=&quot;1&quot;&gt;教程&lt;/h2&gt;&lt;p&gt;我们先进入目录&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word; text-wrap: wrap; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;a class=&quot;core-next-img&quot; href=&quot;https://zobkarticle.oss-cn-beijing.aliyuncs.com/zb_users/upload/2024/11/20241130135724173294624486866.png?x-oss-process=style/zobkarticle&quot; data-group=&quot;nogroup&quot; data-id=&quot;0&quot; data-index=&quot;0&quot; target=&quot;_blank&quot; style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; transition: color 0.4s ease 0s; cursor: var(--cursor-pointer);&quot;&gt;&lt;img src=&quot;https://zobkarticle.oss-cn-beijing.aliyuncs.com/zb_users/upload/2024/11/20241130135724173294624486866.png?x-oss-process=style/zobkarticle&quot; alt=&quot;e280eab1cbd0c4cfcf005b199ef013de&quot; title=&quot;e280eab1cbd0c4cfcf005b199ef013de&quot;/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word; text-wrap: wrap; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;a class=&quot;core-next-img&quot; href=&quot;https://zobkarticle.oss-cn-beijing.aliyuncs.com/zb_users/upload/2024/11/20241130135724173294624424491.png?x-oss-process=style/zobkarticle&quot; data-group=&quot;nogroup&quot; data-id=&quot;1&quot; data-index=&quot;1&quot; target=&quot;_blank&quot; style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; transition: color 0.4s ease 0s; cursor: var(--cursor-pointer);&quot;&gt;&lt;img src=&quot;https://zobkarticle.oss-cn-beijing.aliyuncs.com/zb_users/upload/2024/11/20241130135724173294624424491.png?x-oss-process=style/zobkarticle&quot; alt=&quot;19917fa32250064135cfe132784bcce8&quot; title=&quot;19917fa32250064135cfe132784bcce8&quot;/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;解压下来然后去搜索&lt;/p&gt;&lt;p&gt;我们直接把文件夹拖入软件中&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word; text-wrap: wrap; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;a class=&quot;core-next-img&quot; href=&quot;https://zobkarticle.oss-cn-beijing.aliyuncs.com/zb_users/upload/2024/11/20241130135724173294624485280.png?x-oss-process=style/zobkarticle&quot; data-group=&quot;nogroup&quot; data-id=&quot;2&quot; data-index=&quot;2&quot; target=&quot;_blank&quot; style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; transition: color 0.4s ease 0s; cursor: var(--cursor-pointer);&quot;&gt;&lt;img src=&quot;https://zobkarticle.oss-cn-beijing.aliyuncs.com/zb_users/upload/2024/11/20241130135724173294624485280.png?x-oss-process=style/zobkarticle&quot; alt=&quot;bbda1532f683aec5f143f8637392dafa&quot; title=&quot;bbda1532f683aec5f143f8637392dafa&quot;/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;然后我们点击搜索&lt;/p&gt;&lt;p&gt;&lt;br style=&quot;padding: 0px; margin: 0px; box-sizing: border-box;&quot;/&gt;&lt;a href=&quot;https://zobkarticle.oss-cn-beijing.aliyuncs.com/zb_users/upload/2024/11/20241130135725173294624567115.png?x-oss-process=style/zobkarticle&quot; data-group=&quot;nogroup&quot; data-id=&quot;3&quot; data-index=&quot;3&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;https://zobkarticle.oss-cn-beijing.aliyuncs.com/zb_users/upload/2024/11/20241130135725173294624567115.png?x-oss-process=style/zobkarticle&quot; alt=&quot;6813b3d722d460e2ebc0ceb13a5b685b&quot; title=&quot;6813b3d722d460e2ebc0ceb13a5b685b&quot;/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;选择里面的(在文件查找)&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-php&quot;&gt;修改内容为

&amp;quot;你的域名&amp;quot;改成你自己的域名

&amp;quot;你的QQ&amp;quot;改成你自己的联系方式

&amp;quot;你的版权&amp;quot;改成你自己的版权

&amp;quot;你的授权端&amp;quot;改成你自己的宝塔IP

(别的也是一样操作)&lt;/pre&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word; text-wrap: wrap; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word; text-wrap: wrap; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;a class=&quot;core-next-img&quot; href=&quot;https://www.qcyqq.com/wp-content/uploads/2024/11/b5d0894dad5e48b7cf9d6e524dfe0e6b-2.png&quot; data-group=&quot;nogroup&quot; data-id=&quot;4&quot; data-index=&quot;4&quot; target=&quot;_blank&quot; style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; transition: color 0.4s ease 0s; cursor: var(--cursor-pointer);&quot;&gt;&lt;img src=&quot;https://zobkarticle.oss-cn-beijing.aliyuncs.com/zb_users/upload/2024/11/20241130135725173294624563182.png?x-oss-process=style/zobkarticle&quot; alt=&quot;b5d0894dad5e48b7cf9d6e524dfe0e6b-2&quot; title=&quot;b5d0894dad5e48b7cf9d6e524dfe0e6b-2&quot;/&gt;&lt;/a&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-php&quot;&gt;cdnfly-agent-v5.1.16&amp;nbsp;
cdnfly-master-v5.2.1
master.sh
agent.sh
api.py
#把这些全部改成你自己的域名&lt;/pre&gt;&lt;h2 cat-index=&quot;2&quot;&gt;第二步压缩&lt;/h2&gt;&lt;p&gt;我们打开7z&lt;/p&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word; text-wrap: wrap; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;a class=&quot;core-next-img&quot; href=&quot;https://www.qcyqq.com/wp-content/uploads/2024/11/fb39b52c5282961fa8c6acf7bbcb7b66.png&quot; data-group=&quot;nogroup&quot; data-id=&quot;5&quot; data-index=&quot;5&quot; target=&quot;_blank&quot; style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; transition: color 0.4s ease 0s; cursor: var(--cursor-pointer);&quot;&gt;&lt;img src=&quot;https://zobkarticle.oss-cn-beijing.aliyuncs.com/zb_users/upload/2024/11/20241130135725173294624526466.png?x-oss-process=style/zobkarticle&quot; alt=&quot;fb39b52c5282961fa8c6acf7bbcb7b66&quot; title=&quot;fb39b52c5282961fa8c6acf7bbcb7b66&quot;/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;直接把改完的主控包和节点包拖入&lt;span style=&quot;color: #FF0000;&quot;&gt;7z&lt;/span&gt;&lt;/p&gt;&lt;p&gt;我拿节点包来做演示&lt;/p&gt;&lt;p&gt;改完之后的状态是这样&lt;/p&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word; text-wrap: wrap; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;a class=&quot;core-next-img&quot; href=&quot;https://www.qcyqq.com/wp-content/uploads/2024/11/702a722738f42dfa2aceb7f80fee0290.png&quot; data-group=&quot;nogroup&quot; data-id=&quot;6&quot; data-index=&quot;6&quot; target=&quot;_blank&quot; style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; transition: color 0.4s ease 0s; cursor: var(--cursor-pointer);&quot;&gt;&lt;img src=&quot;https://zobkarticle.oss-cn-beijing.aliyuncs.com/zb_users/upload/2024/11/20241130135726173294624654200.png?x-oss-process=style/zobkarticle&quot; alt=&quot;702a722738f42dfa2aceb7f80fee0290&quot; title=&quot;702a722738f42dfa2aceb7f80fee0290&quot;/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;我们直接进入节点包的文件夹&lt;/p&gt;&lt;p style=&quot;padding: 0px; box-sizing: border-box; overflow-wrap: break-word; text-wrap: wrap; color: rgb(55, 55, 58); font-family: HarmonyOS_Medium, system-ui; font-size: 16px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;a class=&quot;core-next-img&quot; href=&quot;https://www.qcyqq.com/wp-content/uploads/2024/11/be74a43c463fde509cfe23fd8877c6ed.png&quot; data-group=&quot;nogroup&quot; data-id=&quot;7&quot; data-index=&quot;7&quot; target=&quot;_blank&quot; style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; transition: color 0.4s ease 0s; cursor: var(--cursor-pointer);&quot;&gt;&lt;img src=&quot;https://zobkarticle.oss-cn-beijing.aliyuncs.com/zb_users/upload/2024/11/20241130135726173294624660843.png?x-oss-process=style/zobkarticle&quot; alt=&quot;be74a43c463fde509cfe23fd8877c6ed&quot; title=&quot;be74a43c463fde509cfe23fd8877c6ed&quot;/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;我们把这个&lt;span style=&quot;color: #FF0000;&quot;&gt;cdnfly-agent-v5.1.16&lt;/span&gt;拖入7z中压缩成&lt;span style=&quot;color: #FF0000;&quot;&gt;tar.gz&lt;/span&gt;的格式&lt;/p&gt;&lt;p&gt;然后改成他之前的&lt;span style=&quot;color: #FF0000;&quot;&gt;压缩包名字&lt;/span&gt;&amp;nbsp;只需要复制粘贴即可&lt;/p&gt;&lt;p&gt;最后把文件上传到网站目录即可&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sat, 30 Nov 2024 13:55:23 +0800</pubDate></item></channel></rss>