Skip to content

Commit 2b68234

Browse files
committed
fix:修复wget可能导致的文本未覆盖更新的问题
1 parent 6956fec commit 2b68234

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+5226
-5226
lines changed

docs/case/case2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ curl -L https://cdn.spiritlhl.workers.dev/https://raw.githubusercontent.com/spir
8080
比如:https://github.com/fscarmen/warp
8181

8282
```bash
83-
wget -N https://raw.githubusercontent.com/fscarmen/warp/main/menu.sh && bash menu.sh [option] [lisence]
83+
curl -sSLO https://raw.githubusercontent.com/fscarmen/warp/main/menu.sh && bash menu.sh [option] [lisence]
8484
```
8585

8686
非纯V6的,带V4切换优先级到IPV4可用以下命令

docs/case/case3.md

Lines changed: 112 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,113 @@
1-
---
2-
outline: deep
3-
---
4-
5-
# 仓库
6-
7-
https://github.com/spiritLHLS/ecsspeed
8-
9-
[![Hits](https://hits.spiritlhl.net/ecsspeed.svg?action=hit&title=Hits&title_bg=%23555555&count_bg=%230eecf8&edge_flat=false)](https://hits.spiritlhl.net)
10-
11-
# ecsspeed
12-
13-
自动更新测速服务器节点列表的网络基准测试脚本
14-
15-
Network benchmarking script that automatically updates the list of speed measurement server nodes
16-
17-
## 说明
18-
19-
所有组件以及数据均来源于平台或已有的开源项目,无非开源部分,放心食用
20-
21-
### 对应 [speedtest.net](https://www.speedtest.net/) 的自动更新测速服务器ID的测速脚本
22-
23-
日常推荐使用
24-
25-
```
26-
bash <(wget -qO- bash.spiritlhl.net/ecs-net)
27-
```
28-
29-
30-
31-
```
32-
bash <(wget -qO- --no-check-certificate https://github.com/spiritLHLS/ecsspeed/raw/main/script/ecsspeed-net.sh)
33-
```
34-
35-
或国内用
36-
37-
```
38-
bash <(wget -qO- --no-check-certificate https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/ecsspeed/main/script/ecsspeed-net.sh)
39-
```
40-
41-
支持测速的架构:i386, x86_64, amd64, arm64, s390x, riscv64, ppc64le, ppc64
42-
43-
涵盖中国三大运营商、香港、台湾的测速节点,默认的三网测速每个运营商选择本机ping值最低的两个节点测速,详情三网测速才是全测,节点列表大概每7天自动更新一次。
44-
45-
支持国内服务器测试(有判断是否为国内机器),但由于国内服务器带宽过小,会很慢,详见初次运行的显示
46-
47-
当官方CLI安装失败(如罕见的架构或者官方网站访问失败时)自动使用 [speedtest-go](https://github.com/showwin/speedtest-go) 作为替代品测速
48-
49-
### 对应 [speedtest.cn](https://www.speedtest.cn/) 的自动更新测速服务器ID的测速脚本
50-
51-
单线程测速
52-
53-
```
54-
bash <(wget -qO- bash.spiritlhl.net/ecs-cn)
55-
```
56-
57-
58-
59-
```
60-
bash <(wget -qO- --no-check-certificate https://github.com/spiritLHLS/ecsspeed/raw/main/script/ecsspeed-cn.sh)
61-
```
62-
63-
或国内用
64-
65-
```
66-
bash <(wget -qO- --no-check-certificate https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/ecsspeed/main/script/ecsspeed-cn.sh)
67-
```
68-
69-
支持测速的架构:i386, x86_64, amd64, arm64, s390x, riscv64, ppc64le, ppc64
70-
71-
涵盖中国三大运营商、香港、台湾的测速节点,默认的三网测速每个运营商选择本机ping值最低的两个节点测速,详情三网测速才是全测,节点列表每天自动更新一次。
72-
73-
支持国内服务器测试(有判断是否为国内机器),但由于国内服务器带宽过小,会很慢,详见初次运行的显示
74-
75-
### 自动更新测试服务器列表的三网延迟测试脚本
76-
77-
平均耗时10~15秒
78-
79-
```
80-
bash <(wget -qO- bash.spiritlhl.net/ecs-ping)
81-
```
82-
83-
84-
85-
```
86-
bash <(wget -qO- --no-check-certificate https://github.com/spiritLHLS/ecsspeed/raw/main/script/ecsspeed-ping.sh)
87-
```
88-
89-
或国内用
90-
91-
```
92-
bash <(wget -qO- --no-check-certificate https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/ecsspeed/main/script/ecsspeed-ping.sh)
93-
```
94-
95-
效果图
96-
97-
![图片](https://github.com/spiritLHLS/ecsspeed/assets/103393591/4c8f39a2-1286-47ae-a397-c46f3792340b)
98-
99-
## 功能
100-
101-
- [x] 自动抓取 [speedtest.cn](https://www.speedtest.cn/) 节点信息结合已有信息去重并更新列表数据
102-
- [x] 自动抓取 [speedtest.net](https://www.speedtest.net/) 节点信息结合已有信息去重并更新列表数据
103-
- [x] 对应 [speedtest.net](https://www.speedtest.net/) 的自动更新测速服务器列表的测速脚本
104-
- [x] 对应 [speedtest.cn](https://www.speedtest.cn/) 的自动更新测速服务器列表的测速脚本
105-
- [x] 自动更新测试服务器列表的三网Ping值测试脚本
106-
107-
## .cn数据
108-
109-
仓库:https://github.com/spiritLHLS/speedtest.cn-CN-ID
110-
111-
## .net数据
112-
1+
---
2+
outline: deep
3+
---
4+
5+
# 仓库
6+
7+
https://github.com/spiritLHLS/ecsspeed
8+
9+
[![Hits](https://hits.spiritlhl.net/ecsspeed.svg?action=hit&title=Hits&title_bg=%23555555&count_bg=%230eecf8&edge_flat=false)](https://hits.spiritlhl.net)
10+
11+
# ecsspeed
12+
13+
自动更新测速服务器节点列表的网络基准测试脚本
14+
15+
Network benchmarking script that automatically updates the list of speed measurement server nodes
16+
17+
## 说明
18+
19+
所有组件以及数据均来源于平台或已有的开源项目,无非开源部分,放心食用
20+
21+
### 对应 [speedtest.net](https://www.speedtest.net/) 的自动更新测速服务器ID的测速脚本
22+
23+
日常推荐使用
24+
25+
```
26+
bash <(curl -sSL http://bash.spiritlhl.net/ecs-net)
27+
```
28+
29+
30+
31+
```
32+
bash <(curl -sSLk https://github.com/spiritLHLS/ecsspeed/raw/main/script/ecsspeed-net.sh)
33+
```
34+
35+
或国内用
36+
37+
```
38+
bash <(curl -sSLk https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/ecsspeed/main/script/ecsspeed-net.sh)
39+
```
40+
41+
支持测速的架构:i386, x86_64, amd64, arm64, s390x, riscv64, ppc64le, ppc64
42+
43+
涵盖中国三大运营商、香港、台湾的测速节点,默认的三网测速每个运营商选择本机ping值最低的两个节点测速,详情三网测速才是全测,节点列表大概每7天自动更新一次。
44+
45+
支持国内服务器测试(有判断是否为国内机器),但由于国内服务器带宽过小,会很慢,详见初次运行的显示
46+
47+
当官方CLI安装失败(如罕见的架构或者官方网站访问失败时)自动使用 [speedtest-go](https://github.com/showwin/speedtest-go) 作为替代品测速
48+
49+
### 对应 [speedtest.cn](https://www.speedtest.cn/) 的自动更新测速服务器ID的测速脚本
50+
51+
单线程测速
52+
53+
```
54+
bash <(curl -sSL http://bash.spiritlhl.net/ecs-cn)
55+
```
56+
57+
58+
59+
```
60+
bash <(curl -sSLk https://github.com/spiritLHLS/ecsspeed/raw/main/script/ecsspeed-cn.sh)
61+
```
62+
63+
或国内用
64+
65+
```
66+
bash <(curl -sSLk https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/ecsspeed/main/script/ecsspeed-cn.sh)
67+
```
68+
69+
支持测速的架构:i386, x86_64, amd64, arm64, s390x, riscv64, ppc64le, ppc64
70+
71+
涵盖中国三大运营商、香港、台湾的测速节点,默认的三网测速每个运营商选择本机ping值最低的两个节点测速,详情三网测速才是全测,节点列表每天自动更新一次。
72+
73+
支持国内服务器测试(有判断是否为国内机器),但由于国内服务器带宽过小,会很慢,详见初次运行的显示
74+
75+
### 自动更新测试服务器列表的三网延迟测试脚本
76+
77+
平均耗时10~15秒
78+
79+
```
80+
bash <(curl -sSL http://bash.spiritlhl.net/ecs-ping)
81+
```
82+
83+
84+
85+
```
86+
bash <(curl -sSLk https://github.com/spiritLHLS/ecsspeed/raw/main/script/ecsspeed-ping.sh)
87+
```
88+
89+
或国内用
90+
91+
```
92+
bash <(curl -sSLk https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/ecsspeed/main/script/ecsspeed-ping.sh)
93+
```
94+
95+
效果图
96+
97+
![图片](https://github.com/spiritLHLS/ecsspeed/assets/103393591/4c8f39a2-1286-47ae-a397-c46f3792340b)
98+
99+
## 功能
100+
101+
- [x] 自动抓取 [speedtest.cn](https://www.speedtest.cn/) 节点信息结合已有信息去重并更新列表数据
102+
- [x] 自动抓取 [speedtest.net](https://www.speedtest.net/) 节点信息结合已有信息去重并更新列表数据
103+
- [x] 对应 [speedtest.net](https://www.speedtest.net/) 的自动更新测速服务器列表的测速脚本
104+
- [x] 对应 [speedtest.cn](https://www.speedtest.cn/) 的自动更新测速服务器列表的测速脚本
105+
- [x] 自动更新测试服务器列表的三网Ping值测试脚本
106+
107+
## .cn数据
108+
109+
仓库:https://github.com/spiritLHLS/speedtest.cn-CN-ID
110+
111+
## .net数据
112+
113113
仓库:https://github.com/spiritLHLS/speedtest.net-CN-ID

docs/case/case5.md

Lines changed: 72 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,72 @@
1-
---
2-
outline: deep
3-
---
4-
5-
# 仓库
6-
7-
https://github.com/spiritLHLS/Oracle-server-keep-alive-script
8-
9-
[![Hits](https://hits.spiritlhl.net/Oracle-server-keep-alive-script.svg?action=hit&title=Hits&title_bg=%23555555&count_bg=%230eecf8&edge_flat=false)](https://hits.spiritlhl.net)
10-
11-
# Oracle-server-keep-alive-script
12-
13-
实际不止可以在甲骨文服务器上使用,也可以使用在任意ARM或X86_64架构的系统,用作资源占用
14-
15-
## 甲骨文服务器保活脚本
16-
17-
适配系统:已在Ubuntu 20+,Debian 10+, Centos 7+, Oracle linux 8+,AlmaLinux 8.5+
18-
19-
上述系统验证无问题,别的主流系统应该也没有问题
20-
21-
可选占用:CPU,内存,带宽
22-
23-
安装完毕后如果有问题请卸载脚本反馈问题(重复卸载也没问题)
24-
25-
所有资源(除了CPU)可选默认配置则动态占用,实时调整,避免服务器有别的任何资源已经超过限额了仍然再占用资源
26-
27-
为避免GitHub的CDN抽风加载不了新内容,所有新更新已使用[Gitlab仓库](https://gitlab.com/spiritysdx/Oracle-server-keep-alive-script)
28-
29-
由于speedtest-go的release依赖于GitHub,所以请检查 [www.githubstatus.com](https://www.githubstatus.com/) ,有问题时无法安装带宽占用
30-
31-
### 基础开发完毕,测试中,有问题请在issues中反馈
32-
33-
选项1安装,选项2卸载,选项3更新安装引导脚本,选项4退出脚本
34-
35-
安装过程中无脑回车则全部可选的占用都占用,不需要什么占用输入```n```再回车
36-
37-
如果选择带宽占用,会询问使用speedtest-go占用还是使用wget占用,按照提示进行选择即可
38-
39-
有询问是否需要带宽占用的参数自定义,这时候默认选项就是```n```,回车就使用默认配置,输入```y```再回车则需要按照提示自定义参数
40-
41-
```
42-
curl -L https://gitlab.com/spiritysdx/Oracle-server-keep-alive-script/-/raw/main/oalive.sh -o oalive.sh && chmod +x oalive.sh && bash oalive.sh
43-
```
44-
45-
46-
47-
```
48-
bash oalive.sh
49-
```
50-
51-
52-
53-
```
54-
bash <(wget -qO- --no-check-certificate https://gitlab.com/spiritysdx/Oracle-server-keep-alive-script/-/raw/main/oalive.sh)
55-
```
56-
57-
### 说明
58-
59-
- 提供两种CPU占用模式:DD模拟占用和科学计算模式,用户可以自由选择,占用范围设置在15%至25%之间,更推荐DD模拟占用
60-
- DD模拟占用在守护进程中设置了CPU占用的最高限制
61-
- 默认情况下,CPU占用设置为25%最高值,计算方法是核数乘以12%,如果计算结果低于25%,则设置为该值;如果计算结果高于25%,则按照计算结果的比例进行设置。
62-
- 内存占用设置为占用总内存的20%,占用时间为300秒,休息时间为300秒。
63-
- 每300秒检测一次内存占用情况,并根据需要动态调整占用大小。如果内存占用已经大于20%,则不增加占用。
64-
- 在占用过程中,使用守护进程和开机自启服务,以确保占用任务持续且有效。
65-
- 默认选项的带宽占用每45分钟下载一次大小在1G至10G之间的文件,只进行下载而不保存。在下载过程中会占用硬盘空间,但在下载完成后会自动释放。
66-
- 默认选项的带宽占用动态调整实际下载的带宽/速率,限制每次下载的最长时长为6分钟。在每次下载之前,会测试最大可用带宽,并根据实时结果将下载速率设置为30%的带宽。
67-
- 带宽占用测试使用了speedtest-cli和speedtest-go两种工具,以防其中之一不可用时使用第二种工具,用户可以自定义设置带宽占用,此时详见设置提示。
68-
- 提供一键卸载所有占用服务的选项,卸载将删除所有脚本、服务、任务、守护进程和开机自启设置。
69-
- 提供一键检查更新的功能,更新范围仅限于脚本更新。**请在更新后重新设置占用服务**
70-
- 对所有进程执行增加唯一性检测,避免重复运行,使用PID文件进行判断。
71-
72-
如若不希望一键的,希望自定义设置时间的,请查看[README_CRON.md](https://gitlab.com/spiritysdx/Oracle-server-keep-alive-script/-/blob/main/%20README_CRON.md)自行设置定时任务
1+
---
2+
outline: deep
3+
---
4+
5+
# 仓库
6+
7+
https://github.com/spiritLHLS/Oracle-server-keep-alive-script
8+
9+
[![Hits](https://hits.spiritlhl.net/Oracle-server-keep-alive-script.svg?action=hit&title=Hits&title_bg=%23555555&count_bg=%230eecf8&edge_flat=false)](https://hits.spiritlhl.net)
10+
11+
# Oracle-server-keep-alive-script
12+
13+
实际不止可以在甲骨文服务器上使用,也可以使用在任意ARM或X86_64架构的系统,用作资源占用
14+
15+
## 甲骨文服务器保活脚本
16+
17+
适配系统:已在Ubuntu 20+,Debian 10+, Centos 7+, Oracle linux 8+,AlmaLinux 8.5+
18+
19+
上述系统验证无问题,别的主流系统应该也没有问题
20+
21+
可选占用:CPU,内存,带宽
22+
23+
安装完毕后如果有问题请卸载脚本反馈问题(重复卸载也没问题)
24+
25+
所有资源(除了CPU)可选默认配置则动态占用,实时调整,避免服务器有别的任何资源已经超过限额了仍然再占用资源
26+
27+
为避免GitHub的CDN抽风加载不了新内容,所有新更新已使用[Gitlab仓库](https://gitlab.com/spiritysdx/Oracle-server-keep-alive-script)
28+
29+
由于speedtest-go的release依赖于GitHub,所以请检查 [www.githubstatus.com](https://www.githubstatus.com/) ,有问题时无法安装带宽占用
30+
31+
### 基础开发完毕,测试中,有问题请在issues中反馈
32+
33+
选项1安装,选项2卸载,选项3更新安装引导脚本,选项4退出脚本
34+
35+
安装过程中无脑回车则全部可选的占用都占用,不需要什么占用输入```n```再回车
36+
37+
如果选择带宽占用,会询问使用speedtest-go占用还是使用wget占用,按照提示进行选择即可
38+
39+
有询问是否需要带宽占用的参数自定义,这时候默认选项就是```n```,回车就使用默认配置,输入```y```再回车则需要按照提示自定义参数
40+
41+
```
42+
curl -L https://gitlab.com/spiritysdx/Oracle-server-keep-alive-script/-/raw/main/oalive.sh -o oalive.sh && chmod +x oalive.sh && bash oalive.sh
43+
```
44+
45+
46+
47+
```
48+
bash oalive.sh
49+
```
50+
51+
52+
53+
```
54+
bash <(curl -sSLk https://gitlab.com/spiritysdx/Oracle-server-keep-alive-script/-/raw/main/oalive.sh)
55+
```
56+
57+
### 说明
58+
59+
- 提供两种CPU占用模式:DD模拟占用和科学计算模式,用户可以自由选择,占用范围设置在15%至25%之间,更推荐DD模拟占用
60+
- DD模拟占用在守护进程中设置了CPU占用的最高限制
61+
- 默认情况下,CPU占用设置为25%最高值,计算方法是核数乘以12%,如果计算结果低于25%,则设置为该值;如果计算结果高于25%,则按照计算结果的比例进行设置。
62+
- 内存占用设置为占用总内存的20%,占用时间为300秒,休息时间为300秒。
63+
- 每300秒检测一次内存占用情况,并根据需要动态调整占用大小。如果内存占用已经大于20%,则不增加占用。
64+
- 在占用过程中,使用守护进程和开机自启服务,以确保占用任务持续且有效。
65+
- 默认选项的带宽占用每45分钟下载一次大小在1G至10G之间的文件,只进行下载而不保存。在下载过程中会占用硬盘空间,但在下载完成后会自动释放。
66+
- 默认选项的带宽占用动态调整实际下载的带宽/速率,限制每次下载的最长时长为6分钟。在每次下载之前,会测试最大可用带宽,并根据实时结果将下载速率设置为30%的带宽。
67+
- 带宽占用测试使用了speedtest-cli和speedtest-go两种工具,以防其中之一不可用时使用第二种工具,用户可以自定义设置带宽占用,此时详见设置提示。
68+
- 提供一键卸载所有占用服务的选项,卸载将删除所有脚本、服务、任务、守护进程和开机自启设置。
69+
- 提供一键检查更新的功能,更新范围仅限于脚本更新。**请在更新后重新设置占用服务**
70+
- 对所有进程执行增加唯一性检测,避免重复运行,使用PID文件进行判断。
71+
72+
如若不希望一键的,希望自定义设置时间的,请查看[README_CRON.md](https://gitlab.com/spiritysdx/Oracle-server-keep-alive-script/-/blob/main/%20README_CRON.md)自行设置定时任务

0 commit comments

Comments
 (0)