本文及资源最后更新时间 2020-08-28 by sky995
一个Linux VPS自己搭建cdn的教程,采用最新的Fikkerd 3.7.6 CDN系统免费自己搭建一个cdn给网站加速,此处Fikkerd为开心版,附上解除8小时失效的问题。
1.Fikkerd开心版
Fikkerd很久前在博客就介绍过了,是一款面向CDN/站长的专业级网站缓存和反向代理服务器软件,支持Https/反向代理/防CC攻击等多项功能。
由于免费版受限很多,导致很多功能都用不了,现在有大佬发出了最新Linux Fikker 3.7.6授权全功能破解版,有兴趣的可以试试自建CDN。
2.安装Fikkerd
运行以下命令:
<span class="pln">wget https</span><span class="pun">:</span><span class="com">//www.moerats.com/usr/down/fikkerd-3.7.6-linux-x86-64.tar.gz</span><span class="pln"> tar zxvf fikkerd</span><span class="pun">-</span><span class="lit">3.7</span><span class="pun">.</span><span class="lit">6</span><span class="pun">-</span><span class="pln">linux</span><span class="pun">-</span><span class="pln">x86</span><span class="pun">-</span><span class="lit">64.tar</span><span class="pun">.</span><span class="pln">gz cd fikkerd</span><span class="pun">-</span><span class="lit">3.7</span><span class="pun">.</span><span class="lit">6</span><span class="pun">-</span><span class="pln">linux</span><span class="pun">-</span><span class="pln">x86</span><span class="pun">-</span><span class="lit">64</span><span class="pun">/</span><span class="pln"> chmod </span><span class="pun">+</span><span class="pln">x </span><span class="pun">./</span><span class="pln">bin</span><span class="pun">/</span><span class="pln">fikkerd </span><span class="pun">./</span><span class="pln">fikkerd</span><span class="pun">.</span><span class="pln">sh install </span><span class="pun">./</span><span class="pln">fikkerd</span><span class="pun">.</span><span class="pln">sh start</span>
完成后访问http://IP:6780
,初始密码为123456
。
3.防火墙设置
如果打不开,开启端口即可。
<span class="com">#如果防火墙使用的iptables(Centos 6)</span><span class="pln"> iptables </span><span class="pun">-</span><span class="pln">I INPUT </span><span class="pun">-</span><span class="pln">p tcp </span><span class="pun">--</span><span class="pln">dport </span><span class="lit">80</span> <span class="pun">-</span><span class="pln">j ACCEPT iptables </span><span class="pun">-</span><span class="pln">I INPUT </span><span class="pun">-</span><span class="pln">p tcp </span><span class="pun">--</span><span class="pln">dport </span><span class="lit">443</span> <span class="pun">-</span><span class="pln">j ACCEPT iptables </span><span class="pun">-</span><span class="pln">I INPUT </span><span class="pun">-</span><span class="pln">p tcp </span><span class="pun">--</span><span class="pln">dport </span><span class="lit">6780</span> <span class="pun">-</span><span class="pln">j ACCEPT service iptables save service iptables restart </span><span class="com">#如果使用的是firewall(CentOS 7)</span><span class="pln"> firewall</span><span class="pun">-</span><span class="pln">cmd </span><span class="pun">--</span><span class="pln">zone</span><span class="pun">=</span><span class="kwd">public</span> <span class="pun">--</span><span class="pln">add</span><span class="pun">-</span><span class="pln">port</span><span class="pun">=</span><span class="lit">80</span><span class="pun">/</span><span class="pln">tcp </span><span class="pun">--</span><span class="pln">permanent firewall</span><span class="pun">-</span><span class="pln">cmd </span><span class="pun">--</span><span class="pln">zone</span><span class="pun">=</span><span class="kwd">public</span> <span class="pun">--</span><span class="pln">add</span><span class="pun">-</span><span class="pln">port</span><span class="pun">=</span><span class="lit">443</span><span class="pun">/</span><span class="pln">tcp </span><span class="pun">--</span><span class="pln">permanent firewall</span><span class="pun">-</span><span class="pln">cmd </span><span class="pun">--</span><span class="pln">zone</span><span class="pun">=</span><span class="kwd">public</span> <span class="pun">--</span><span class="pln">add</span><span class="pun">-</span><span class="pln">port</span><span class="pun">=</span><span class="lit">6780</span><span class="pun">/</span><span class="pln">tcp </span><span class="pun">--</span><span class="pln">permanent firewall</span><span class="pun">-</span><span class="pln">cmd </span><span class="pun">--</span><span class="pln">reload</span>
使用方法查看前面给的Fikker
教程地址。
4.Fikkerd破解限制
最后破解不彻底的解决办法 ,没8个小时重启一下fikkerPHP
<span class="pln">echo </span><span class="str">"0 */8 * * * /etc/init.d/fikkerd restart "</span> <span class="pun">>></span><span class="str">/etc/</span><span class="pln">crontab</span>
这也是许多人使用破解版反馈的问题,为啥隔了几个小时就失效了,就是这个原因。
5.相关命令操作
1、Fikkerd设置截图:点击查看
2、安装-卸载操作流程:点击前往
3、插件开启教程:点击前往
6.kangle一键安装脚本
补充:2020年8月21日16:12:21
这里再补充一个kangle的一键安装脚本。
安装命令地址:点击前往
安装指令
<span class="pln">yum </span><span class="pun">-</span><span class="pln">y install wget</span><span class="pun">;</span><span class="pln">wget http</span><span class="pun">:</span><span class="com">//kangle.pw/install -O install;sh install</span>
安装完成! 再次打开此脚本请使用sh install命令
easypanel控制面板管理员后台:ip:3312/admin
帐号:admin
密码:kangle
mysql数据库管理员后台:ip:3313/mysql
帐号:root
密码:kangle.pw
想要用mysql的话,一定要先进去3312/admin登录,左边有个服务器设置,把数据库帐号密码填入,并且初始化服务器后即可正常登录mysql使用。
再次打开此脚本请使用sh install命令 可开启用户自助泛解析