lee1080 / CloudflareSpeedTestDDNS

使用CloudflareSpeedTest工具优选IP后自动DDNS到Cloudflare
499 stars 175 forks source link

在MacBook本机docker上运行报错 #39

Open daerdai opened 1 year ago

daerdai commented 1 year ago

这是运行日志: 2023-09-18 11:37:08 配置获取成功! 2023-09-18 11:37:09 Cloudflare账号验证成功 2023-09-18 11:37:09 当前工作模式为ipv4 2023-09-18 11:37:09 ./cf_ddns/cf_ddns_cloudflare.sh: line 57: /etc/init.d/passwall: No such file or directory 2023-09-18 11:37:09 已停止passwall 2023-09-18 11:37:09 invalid value "-t" for flag -tp: parse error 2023-09-18 11:37:09 2023-09-18 11:37:09 CloudflareSpeedTest v2.2.4 2023-09-18 11:37:09 测试 Cloudflare CDN 所有 IP 的延迟和速度,获取最快 IP (IPv4+IPv6)! 2023-09-18 11:37:09 https://github.com/XIU2/CloudflareSpeedTest 2023-09-18 11:37:09 2023-09-18 11:37:09 参数: 2023-09-18 11:37:09 -n 200 2023-09-18 11:37:09 延迟测速线程;越多延迟测速越快,性能弱的设备 (如路由器) 请勿太高;(默认 200 最多 1000) 2023-09-18 11:37:09 -t 4 2023-09-18 11:37:09 延迟测速次数;单个 IP 延迟测速的次数;(默认 4 次) 2023-09-18 11:37:09 -dn 10 2023-09-18 11:37:09 下载测速数量;延迟测速并排序后,从最低延迟起下载测速的数量;(默认 10 个) 2023-09-18 11:37:09 -dt 10 2023-09-18 11:37:09 下载测速时间;单个 IP 下载测速最长时间,不能太短;(默认 10 秒) 2023-09-18 11:37:09 -tp 443 2023-09-18 11:37:09 指定测速端口;延迟测速/下载测速时使用的端口;(默认 443 端口) 2023-09-18 11:37:09 -url https://cf.xiu2.xyz/url 2023-09-18 11:37:09 指定测速地址;延迟测速(HTTPing)/下载测速时使用的地址,默认地址不保证可用性,建议自建; 2023-09-18 11:37:09 2023-09-18 11:37:09 -httping 2023-09-18 11:37:09 切换测速模式;延迟测速模式改为 HTTP 协议,所用测试地址为 [-url] 参数;(默认 TCPing) 2023-09-18 11:37:09 -httping-code 200 2023-09-18 11:37:09 有效状态代码;HTTPing 延迟测速时网页返回的有效 HTTP 状态码,仅限一个;(默认 200 301 302) 2023-09-18 11:37:09 -cfcolo HKG,KHH,NRT,LAX,SEA,SJC,FRA,MAD 2023-09-18 11:37:09 匹配指定地区;地区名为当地机场三字码,英文逗号分隔,仅 HTTPing 模式可用;(默认 所有地区) 2023-09-18 11:37:09 2023-09-18 11:37:09 -tl 200 2023-09-18 11:37:09 平均延迟上限;只输出低于指定平均延迟的 IP,各上下限条件可搭配使用;(默认 9999 ms) 2023-09-18 11:37:09 -tll 40 2023-09-18 11:37:09 平均延迟下限;只输出高于指定平均延迟的 IP;(默认 0 ms) 2023-09-18 11:37:09 -tlr 0.2 2023-09-18 11:37:09 丢包几率上限;只输出低于/等于指定丢包率的 IP,范围 0.00~1.00,0 过滤掉任何丢包的 IP;(默认 1.00) 2023-09-18 11:37:09 -sl 5 2023-09-18 11:37:09 下载速度下限;只输出高于指定下载速度的 IP,凑够指定数量 [-dn] 才会停止测速;(默认 0.00 MB/s) 2023-09-18 11:37:09 2023-09-18 11:37:09 -p 10 2023-09-18 11:37:09 显示结果数量;测速后直接显示指定数量的结果,为 0 时不显示结果直接退出;(默认 10 个) 2023-09-18 11:37:09 -f ip.txt 2023-09-18 11:37:09 IP段数据文件;如路径含有空格请加上引号;支持其他 CDN IP段;(默认 ip.txt) 2023-09-18 11:37:09 -ip 1.1.1.1,2.2.2.2/24,2606:4700::/32 2023-09-18 11:37:09 指定IP段数据;直接通过参数指定要测速的 IP 段数据,英文逗号分隔;(默认 空) 2023-09-18 11:37:09 -o result.csv 2023-09-18 11:37:09 写入结果文件;如路径含有空格请加上引号;值为空时不写入文件 [-o ""];(默认 result.csv) 2023-09-18 11:37:09 2023-09-18 11:37:09 -dd 2023-09-18 11:37:09 禁用下载测速;禁用后测速结果会按延迟排序 (默认按下载速度排序);(默认 启用) 2023-09-18 11:37:09 -allip 2023-09-18 11:37:09 测速全部的IP;对 IP 段中的每个 IP (仅支持 IPv4) 进行测速;(默认 每个 /24 段随机测速一个 IP) 2023-09-18 11:37:09 2023-09-18 11:37:09 -v 2023-09-18 11:37:09 打印程序版本 + 检查版本更新 2023-09-18 11:37:09 -h 2023-09-18 11:37:09 打印帮助说明 2023-09-18 11:37:09 测速完毕 2023-09-18 11:37:09 ./cf_ddns/cf_ddns_cloudflare.sh: line 101: /etc/init.d/passwall: No such file or directory 2023-09-18 11:37:09 已重启passwall 2023-09-18 11:37:09 等待秒后开始更新DNS! 2023-09-18 11:37:09 sleep: invalid time interval ‘s’ 2023-09-18 11:37:09 Try 'sleep --help' for more information. 2023-09-18 11:37:09 正在更新域名,请稍后... 2023-09-18 11:37:09 sed: can't read ./cf_ddns/result.csv: No such file or directory 2023-09-18 11:37:09 sed: can't read ./cf_ddns/result.csv: No such file or directory 2023-09-18 11:37:09 ./cf_ddns/cf_ddns_cloudflare.sh: line 117: [: =: unary operator expected 2023-09-18 11:37:15 sed: can't read ./cf_ddns/result.csv: No such file or directory 2023-09-18 11:37:15 sed: can't read ./cf_ddns/result.csv: No such file or directory 2023-09-18 11:37:15 ./cf_ddns/cf_ddns_cloudflare.sh: line 117: [: =: unary operator expected 2023-09-18 11:37:20 sed: can't read ./cf_ddns/result.csv: No such file or directory 2023-09-18 11:37:20 sed: can't read ./cf_ddns/result.csv: No such file or directory 2023-09-18 11:37:20 ./cf_ddns/cf_ddns_cloudflare.sh: line 117: [: =: unary operator expected 2023-09-18 11:37:26 sed: can't read ./cf_ddns/result.csv: No such file or directory 2023-09-18 11:37:26 sed: can't read ./cf_ddns/result.csv: No such file or directory 2023-09-18 11:37:26 ./cf_ddns/cf_ddns_cloudflare.sh: line 117: [: =: unary operator expected 2023-09-18 11:37:32 sed: can't read ./cf_ddns/result.csv: No such file or directory 2023-09-18 11:37:32 sed: can't read ./cf_ddns/result.csv: No such file or directory 2023-09-18 11:37:32 ./cf_ddns/cf_ddns_cloudflare.sh: line 117: [: =: unary operator expected 2023-09-18 11:37:38 rm: cannot remove '/etc/hosts': Resource busy 2023-09-18 11:37:38 hosts已更新 2023-09-18 11:37:38 未配置TG推送 2023-09-18 11:37:39 PushPlus推送成功 2023-09-18 11:37:39 未配置Server 酱 2023-09-18 11:37:39 未配置PushDeer推送 2023-09-18 11:37:39 未配置企业微信推送 2023-09-18 11:37:39 access_token验证不正确 2023-09-18 11:37:39 未配置Synology Chat推送 2023-09-18 11:37:39 开始更新第1个--- 2023-09-18 11:37:39 yx1.dingxz.com更新失败 2023-09-18 11:37:39 开始更新第2个--- 2023-09-18 11:37:39 yx2.dingxz.com更新失败 2023-09-18 11:37:39 开始更新第3个--- 2023-09-18 11:37:39 yx3.dingxz.com更新失败 2023-09-18 11:37:39 开始更新第4个--- 2023-09-18 11:37:39 yx4.dingxz.com更新失败 2023-09-18 11:37:39 开始更新第5个--- 2023-09-18 11:37:39 yx5.dingxz.com更新失败 2023-09-18 11:37:39 hosts已更新

lee1080 commented 1 year ago

docker中打包的环境是x86架构的,现在的mac都是M系列芯片是arm架构的。如果需要arm架构使用需要替换XIU2/CloudflareSpeedTest为arm的文件。

fsyllkn commented 1 year ago

大佬好,玩客云armbian(armv7)是不是要单独编译才行?

lee1080 commented 1 year ago

大佬好,玩客云armbian(armv7)是不是要单独编译才行?

不需要编译,因为软件都是用的这个大佬编译好的,你只需要选择适合你自己架构的XIU2/CloudflareSpeedTest,配合本项目这个脚本就可以使用了。

hechengdu commented 11 months ago

更新失败 可能是空间id 没填 我的填完空间id后 更新成功了

--空间ID--

zone_id=