本项目基于github.com/ddgth/cf2dns二次开发增加了更多功能与平台支持。
功能上主要用于自动化将优选IP地址解析到您的域名记录中。
支持CloudFlare、CloudFront、Gcore优选IPv4&IPv6地址
支持宝塔面板、python3、GitHub-Actions三种方式部署。
CloudFlare官方优选(WeTest.vip) 更新频率15IP/15分钟
CloudFlare官方优选(HostMonit.com)更新频率15IP/15分钟
CloudFlare官方优选(345673.xyz) 更新频率15IP/15分钟
CloudFront官方优选(WeTest.vip) 更新频率15IP/15分钟
Gcore官方优选 (WeTest.vip) 更新频率15IP/15分钟
已测试支持以下版本
aapanel7.0.7
btpanel7.7.0
btpanel9.0.0-lts
https://github.com/gacjie/cf2dns
插件免费提供授权码o1zrmHAF,可永久免费使用。
WeTest.vip付费服务说明
WeTest.vip付费授权码购买
HostMonit.com付费授权码
345673.xyz付费授权码
宝塔安装时请关闭宝塔系统加固插件,会终止安装脚本的执行。
脚本只会更新电信、移动、联通三网线路的IP,因此还需要将回退源设置到默认线路上。
使用插件前请确保您的网站域名使用cname或saas方式接入,并且域名解析在dnspod、华为云、阿里云。
宝塔安装cf2dns插件
python3部署运行cf2dns_global
GitHub Actions 运行cf2dns_actions
config.json是配置数据
domains.json是域名数据
cf2dns插件、cf2dns_global、cf2dns_actions均支持。
配置完后可以直接备份这俩数据文件,后续需要迁移可直接上传。
更新接口地址为WeTest.vip
插件版增加对传入的字符串过滤空格、换行符
Q:为啥别人使用优选很快,我使用优选访问慢?
A: 通常优选系统只会测用户端 - CDN节点的速度,但是节点也是要访问源站获取数据,源站与节点链接不稳定也会导致整体访问慢。
A:建议增加缓存或有条件更换国际线路较好的源站服务器来优化链接速度。
Q:为什么不支持反代优选?
A:本项目是为了建站而开发,反代优选IP为扫描的第三方的服务器,存在不可控的安全隐患。
A:目前已有因使用反代优选导致域名被注册机构禁用的先例。
A:因此本项目未来也不会提供反代优选,除非您自行添加相关接口。
Q:为什么不支持海外dns解析运营商?
A:由于cf等cdn属于泛播,移动联通电信需要单独解析,才能实现三网优选。海外dns均不支持国内三网线路解析。
A:如不方便使用国内云解析 可以访问 https://www.WeTest.vip 获取公共cname地址使用。
Q:该插件安全吗?
A:插件是基于cf2dns增加了宝塔可视化操作界面。并且代码全部公开在github上面,可先自行审查代码再决定是否安装。
Q:为什么不做成其他面板的插件?
A:由于cf2dns源代码是基于python3编写的,而宝塔面板的运行环境也是python3,所以可以很方便的写成插件,不需要考虑python3环境问题。
由于正式版每次改动比较大,导致一段时间内面板存在的各种BUG一直没断过。
最终宝塔官方迫于压力单独制作了linux面板的稳定版本。
并承诺该版本只修BUG,不会增加功能,以保证面板长期稳定。
提供3年官方支持
每年发布一个版本
不提供跨年度版本在线升级
发布后所有功能定型,后续只修Bug不加功能
Debian 12(推荐),Ubuntu 22,Centos 9,OpenCloud 9,AlibabaCloud 3 麒麟,统信,欧拉等Linux系统
wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh && bash auto_disk.sh
-u或--user (面板用户名) -p或--password (面板密码)-P或--port (面板端口)--safe-path (安全路径)-y (无需确认自动安装)
curl -sSO https://download.bt.cn/install/install_lts.sh;bash install_lts.sh -u baotawww -p baotawww -P 8877 --safe-path baotawww -y
url=https://download.bt.cn/install/install_lts.sh;if [ -f /usr/bin/curl ];then curl -sSO $url;else wget -O install_lts.sh $url;fi;bash install_lts.sh
yum install -y wget && wget -O install.sh https://download.bt.cn/install/install_lts.sh && sudo bash install.sh
wget -O install.sh https://download.bt.cn/install/install_lts.sh && sudo bash install.sh
wget -O install.sh https://download.bt.cn/install/install_lts.sh && bash install.sh
curl https://download.bt.cn/install/update-lts.sh|bash
rm -rf /www/server/panel/pyenv && curl https://download.bt.cn/install/update-lts.sh|bash
]]>宝塔Linux面板是提升运维效率的服务器管理软件,支持一键LAMP/LNMP/集群/监控/网站/FTP/数据库/JAVA等100多项服务器管理功能。
内存:512M以上,推荐768M以上(纯面板约占系统60M内存)
硬盘:300M以上可用硬盘空间(纯面板约占20M磁盘空间)
系统:推荐CentOS 7.1+ (Ubuntu16.04+.、Debian9.0+),确保是干净的操作系统,没有安装过其它环境带的Apache/Nginx/php/MySQL/pgsql/gitlab/java(已有环境不可安装)
系统兼容:Centos7.x > Debian10 > Ubuntu 20.04 > Cenots 8 stream > Ubuntu 18.04 > 其它系统
架构:x86_64(主流服务器均是此架构),ARM不完整兼容(面板环境安装慢,部分软件可能安装不上)
wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh && bash auto_disk.sh
-u或--user (面板用户名) -p或--password (面板密码)-P或--port (面板端口)--safe-path (安全路径)-y (无需确认自动安装)
curl -sSO https://download.bt.cn/install/install_panel.sh;bash install_panel.sh -u baotawww -p baotawww -P 8877 --safe-path baotawww -y
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
curl -sSO http://download.bt.cn/install/install_panel.sh && bash install_panel.sh
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && bash install.sh
wget -O install.sh http://download.bt.cn/install/install_6.0.sh && bash install.sh
curl https://download.bt.cn/install/update_panel.sh|bash
wget -O update6.sh http://download.bt.cn/install/update6.sh && sed -i 's/LinuxPanel-${version}/LinuxPanel-7.9.8/g' update6.sh && sh update6.sh
rm -rf /www/server/panel/pyenv && curl https://download.bt.cn/install/update_panel.sh|bash
wget -O install_panel.sh https://download.bt.cn/install/0/loongarch64/loongarch64_install_panel.sh && bash install_panel.sh
]]>宝塔linux面板7.9.10主题
wget -O btpanel_theme.zip https://down.baota.me/project/bt_panel/theme/BTPanel_theme_linux_7910.zip && unzip -o btpanel_theme.zip -d /www/server/ && /etc/init.d/bt restart
宝塔linux面板7.9.9主题
wget -O btpanel_theme.zip https://down.baota.me/project/bt_panel/theme/BTPanel_theme_linux_799.zip && unzip -o btpanel_theme.zip -d /www/server/ && /etc/init.d/bt restart
宝塔linux面板7.9.8主题
wget -O btpanel_theme.zip https://down.baota.me/project/bt_panel/theme/BTPanel_theme_linux_798.zip && unzip -o btpanel_theme.zip -d /www/server/ && /etc/init.d/bt restart
宝塔linux面板7.7.0主题
wget -O btpanel_theme.zip https://down.baota.me/project/bt_panel/theme/BTPanel_theme_linux_770.zip && unzip -o btpanel_theme.zip -d /www/server/ && /etc/init.d/bt restart
宝塔linux面板7.6.0主题
wget -O btpanel_theme.zip https://down.baota.me/project/bt_panel/theme/BTPanel_theme_linux_760.zip && unzip -o btpanel_theme.zip -d /www/server/ && /etc/init.d/bt restart
宝塔海外aapanel6.8.27版主题
wget -O btpanel_theme.zip https://down.baota.me/project/aapanel/theme/BTPanel_theme_aapanel_6827.zip && unzip -o btpanel_theme.zip -d /www/server/ && /etc/init.d/bt restart
最后还需要手动清理浏览器缓存
{cloud title="宝塔Linux面板7.9.10版本" type="default" url="https://down.baota.me/project/bt_panel/theme/BTPanel_theme_linux_7910.zip" password=""/}
{cloud title="宝塔Linux面板7.9.9版本" type="default" url="https://down.baota.me/project/bt_panel/theme/BTPanel_theme_linux_799.zip" password=""/}
{cloud title="宝塔Linux面板7.9.8版本" type="default" url="https://down.baota.me/project/bt_panel/theme/BTPanel_theme_linux_798.zip" password=""/}
{cloud title="宝塔Linux面板7.7.0版本" type="default" url="https://down.baota.me/project/bt_panel/theme/BTPanel_theme_linux_770.zip" password=""/}
{cloud title="宝塔Linux面板7.6.0版本" type="default" url="https://down.baota.me/project/bt_panel/theme/BTPanel_theme_linux_760.zip" password=""/}
{cloud title="宝塔海外aapanel6.8.27版主题" type="default" url="https://down.baota.me/project/aapanel/theme/BTPanel_theme_aapanel_6827.zip" password=""/}
{cloud title="宝塔windows面板7.8.0版主题" type="default" url="https://down.baota.me/project/bt_panel/theme/BTPanel_theme_windows_780.zip" password=""/}
{cloud title="宝塔windows面板7.2.0版主题" type="default" url="https://down.baota.me/project/bt_panel/theme/BTPanel_theme_windows_720.zip" password=""/}
2023-5-12
更新7.9.10资源包
2023-3-4
重构文件结构,统一安装方法。
2023-3-1
aapanel_6.8.27初始版本发布
windows_780初始版本发布
windows_720初始版本发布
2023-2-28
linux_798初始版本发布
linux_760初始版本发布
2023-2-27
linux_770初始版本发布
由于前端比较菜,一直没有思路,所以百度了别人的一些项目用作参考,感谢各位大佬提供的思路。
https://blog.csdn.net/qq_26373925/article/details/118830692
https://gitee.com/zkui/btpanel-theme
https://blog.imlazy.ink:233/index.php/archives/382/
可安装linux系统的服务器一台
SSH终端软件:新手建议 PuTTY ,此软件大部分操作与实体机操作方法类似。
官方兼容性推荐:Centos7.x > Debian10 > Ubuntu 20.04 > Centos8 stream > Ubuntu 18.04 > 其它系统
考虑到系统软件包版本太旧、根证书太旧等都会影响安装成功率,因此选择系统时建议尽量选择最新版本,比如centos7.x系列最新版本为centos7.9
注意:大部分服务器系统只有root账号,有些可能root无法直接使用ssh登陆,需要先登陆其他账户密码,使用su命令提权。密码输入时不会显示,也可以复制密码后在PuTTY内点击右键即可粘贴进去。
curl -sSO https://download.bt.cn/install/install_panel.sh && bash install_panel.sh
curl -sSO http://download.bt.cn/tools/auto_disk.sh && bash auto_disk.sh
安装前请确保是 【全新的机器】 ,没有安装其他任何环境,否则会影响您的业务使用!
填写好服务器信息, 点击“立即安装到服务器”即全自动完成安装 ,在安装过程中请勿刷新页面!
数据传输过程中加密处理,不保存任何账号密码信息,请放心使用。
系统兼容性推荐:Centos7.x > Debian10 > Ubuntu 20.04 > Centos8 stream > Ubuntu 18.04 > 其它系统
推荐浏览器:Chrome、火狐、edge,国产浏览器请使用极速模式访问面板登录地址
如需在线安装请输入服务器公网IP地址
/etc/init.d/bt stop && chkconfig --del bt && rm -f /etc/init.d/bt && rm -rf /www/server/panel
wget http://download.bt.cn/install/bt-uninstall.sh && bash bt-uninstall.sh
rm -rf /www/server/panel/pyenv && curl https://download.bt.cn/install/update-lts.sh|bash
rm -rf /www/server/panel/pyenv && curl https://download.bt.cn/install/update_panel.sh|bash
curl -sSO -k https://download.bt.cn/tools/w_check.py && btpython w_check.py && rm -rf w_check.py
bt
bt 1
bt 2
bt 3
bt 4
bt 5
bt 6
bt 7
bt 8
bt 9
bt 10
bt 12
bt 13
bt 14
bt 15
bt 16
bt 17
bt 18
bt 22
bt 23
bt 24
bt 25
rm -rf /www/server/panel/plugin/static_cdn/ && bt restart
echo "True" >/www/server/panel/data/not_network.pl
rm -rf /www/server/panel/data/not_network.pl && bt restart
]]>宝塔下载站删除了770以下版本,并传了个有问题的770升级包,因此本教程的文件下载链接不支持降级到7.7.0及以下版本。如有需要降级770请查看文章 宝塔linux面板降级7.7.0版本免登录
wget -O LinuxPanel.zip http://download.bt.cn/install/update/LinuxPanel-7.9.0.zip
unzip LinuxPanel.zip
cd panel && bash update.sh
cd .. && rm -f LinuxPanel.zip && rm -rf panel
]]>/usr/local/memcached
/etc/init.d/memcached start
/etc/init.d/memcached stop
/etc/init.d/memcached restart
/etc/init.d/memcached reload
]]>/www/server/redis
/etc/init.d/redis start
/etc/init.d/redis stop
/www/server/redis/redis.conf
]]>