fix:增设屏蔽CDN设置

This commit is contained in:
spiritsoul
2026-03-10 08:30:45 +00:00
parent 73e39f7ee8
commit e9234f5aa5
18 changed files with 306 additions and 5 deletions

View File

@@ -97,3 +97,20 @@ yum install -y lxcfs # CentOS/RHEL
Disk limits require xfs or btrfs snapshotter support. The default overlay snapshotter does not support container-level disk limits.
For disk limits, refer to the docker or incus solution documentation.
## No-CDN mode (WITHOUTCDN)
If your network is stable and useful, or you want to fully disable CDN acceleration, set this before running scripts:
```shell
export WITHOUTCDN=TRUE
```
You can also apply it to a single command only:
```shell
WITHOUTCDN=TRUE
```
When enabled, scripts will no longer try CDN acceleration URLs during execution.

View File

@@ -64,4 +64,20 @@ Remove a specific image
```
docker rmi <image_name_or_ID>
```
```
## No-CDN mode (WITHOUTCDN)
If your network is stable and useful, or you want to fully disable CDN acceleration, set this before running scripts:
```shell
export WITHOUTCDN=TRUE
```
You can also apply it to a single command only:
```shell
WITHOUTCDN=TRUE
```
When enabled, scripts will no longer try CDN acceleration URLs during execution.

View File

@@ -74,4 +74,20 @@ Removes ```cron``` tasks, script files, log files, and count files.
[kuroit](https://my.kuroit.com/aff.php?aff=5) Phoenix, USA regular
[datalix](https://t.me/+UHVoo2U4VyA5NTQ1/338) German AMD Promotions
[datalix](https://t.me/+UHVoo2U4VyA5NTQ1/338) German AMD Promotions
## No-CDN mode (WITHOUTCDN)
If your network is stable and useful, or you want to fully disable CDN acceleration, set this before running scripts:
```shell
export WITHOUTCDN=TRUE
```
You can also apply it to a single command only:
```shell
WITHOUTCDN=TRUE
```
When enabled, scripts will no longer try CDN acceleration URLs during execution.

View File

@@ -100,3 +100,20 @@ International
bash <(curl -sSL https://raw.githubusercontent.com/oneclickvirt/kubevirt/main/scripts/kubevirtuninstall.sh)
bash <(curl -sSL https://raw.githubusercontent.com/oneclickvirt/kubevirt/main/kubevirtinstall.sh)
```
## No-CDN mode (WITHOUTCDN)
If your network is stable and useful, or you want to fully disable CDN acceleration, set this before running scripts:
```shell
export WITHOUTCDN=TRUE
```
You can also apply it to a single command only:
```shell
WITHOUTCDN=TRUE
```
When enabled, scripts will no longer try CDN acceleration URLs during execution.

View File

@@ -56,3 +56,20 @@ curl -L https://raw.githubusercontent.com/oneclickvirt/incus/main/extra_scripts/
[kuroit](https://my.kuroit.com/aff.php?aff=5) Phoenix, USA regular
[datalix](https://t.me/+UHVoo2U4VyA5NTQ1/338) German AMD Promotions
## No-CDN mode (WITHOUTCDN)
If your network is stable and useful, or you want to fully disable CDN acceleration, set this before running scripts:
```shell
export WITHOUTCDN=TRUE
```
You can also apply it to a single command only:
```shell
WITHOUTCDN=TRUE
```
When enabled, scripts will no longer try CDN acceleration URLs during execution.

View File

@@ -153,4 +153,20 @@ If traffic is flowing in or out, inspect actual connection states with:
```shell
conntrack -L | grep <port>
```
```
## No-CDN mode (WITHOUTCDN)
If your network is stable and useful, or you want to fully disable CDN acceleration, set this before running scripts:
```shell
export WITHOUTCDN=TRUE
```
You can also apply it to a single command only:
```shell
WITHOUTCDN=TRUE
```
When enabled, scripts will no longer try CDN acceleration URLs during execution.

View File

@@ -99,3 +99,20 @@ Manual DNS fix:
echo "nameserver 8.8.8.8" >> /etc/resolv.conf
echo "nameserver 1.1.1.1" >> /etc/resolv.conf
```
## No-CDN mode (WITHOUTCDN)
If your network is stable and useful, or you want to fully disable CDN acceleration, set this before running scripts:
```shell
export WITHOUTCDN=TRUE
```
You can also apply it to a single command only:
```shell
WITHOUTCDN=TRUE
```
When enabled, scripts will no longer try CDN acceleration URLs during execution.

View File

@@ -273,3 +273,20 @@ curl -sSLk 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_rei
[Google cloud platform - GCP](https://console.cloud.google.com/) AMD servers
## No-CDN mode (WITHOUTCDN)
If your network is stable and useful, or you want to fully disable CDN acceleration, set this before running scripts:
```shell
export WITHOUTCDN=TRUE
```
You can also apply it to a single command only:
```shell
WITHOUTCDN=TRUE
```
When enabled, scripts will no longer try CDN acceleration URLs during execution.

View File

@@ -86,3 +86,20 @@ Uninstall first, then reinstall:
bash <(curl -sSL https://raw.githubusercontent.com/oneclickvirt/qemu/main/scripts/qemuuninstall.sh)
bash <(curl -sSL https://raw.githubusercontent.com/oneclickvirt/qemu/main/qemuinstall.sh)
```
## No-CDN mode (WITHOUTCDN)
If your network is stable and useful, or you want to fully disable CDN acceleration, set this before running scripts:
```shell
export WITHOUTCDN=TRUE
```
You can also apply it to a single command only:
```shell
WITHOUTCDN=TRUE
```
When enabled, scripts will no longer try CDN acceleration URLs during execution.

View File

@@ -115,3 +115,20 @@ yum install -y lxcfs # CentOS/RHEL
磁盘限制需要 xfs 或 btrfs snapshotter 支持,默认 overlay snapshotter 不支持容器级磁盘限制。
如需磁盘限制,请查看 docker 方案或 incus 方案中对应的说明。
## 无 CDN 模式WITHOUTCDN
如果服务器网络非常好无需加速,或希望完全禁用 CDN 加速,可在执行脚本前设置:
```shell
export WITHOUTCDN=TRUE
```
也可以只对单次命令生效:
```shell
WITHOUTCDN=TRUE
```
设置后,脚本执行过程中将不再尝试使用 CDN 加速地址。

View File

@@ -65,3 +65,20 @@ docker rm -f 容器名字或ID
```
docker rmi 镜像名字或ID
```
## 无 CDN 模式WITHOUTCDN
如果服务器网络非常好无需加速,或希望完全禁用 CDN 加速,可在执行脚本前设置:
```shell
export WITHOUTCDN=TRUE
```
也可以只对单次命令生效:
```shell
WITHOUTCDN=TRUE
```
设置后,脚本执行过程中将不再尝试使用 CDN 加速地址。

View File

@@ -90,4 +90,20 @@ bash incus_fixed_restart.sh uninstall
[kuroit](https://my.kuroit.com/aff.php?aff=5) 中的 美国凤凰城 regular
[datalix](https://t.me/+UHVoo2U4VyA5NTQ1/338) 中的 德国AMD 促销款
[datalix](https://t.me/+UHVoo2U4VyA5NTQ1/338) 中的 德国AMD 促销款
## 无 CDN 模式WITHOUTCDN
如果服务器网络非常好无需加速,或希望完全禁用 CDN 加速,可在执行脚本前设置:
```shell
export WITHOUTCDN=TRUE
```
也可以只对单次命令生效:
```shell
WITHOUTCDN=TRUE
```
设置后,脚本执行过程中将不再尝试使用 CDN 加速地址。

View File

@@ -113,3 +113,20 @@ bash <(curl -sSL https://raw.githubusercontent.com/oneclickvirt/kubevirt/main/ku
bash <(curl -sSL https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt/kubevirt/main/scripts/kubevirtuninstall.sh)
bash <(curl -sSL https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt/kubevirt/main/kubevirtinstall.sh)
```
## 无 CDN 模式WITHOUTCDN
如果服务器网络非常好无需加速,或希望完全禁用 CDN 加速,可在执行脚本前设置:
```shell
export WITHOUTCDN=TRUE
```
也可以只对单次命令生效:
```shell
WITHOUTCDN=TRUE
```
设置后,脚本执行过程中将不再尝试使用 CDN 加速地址。

View File

@@ -64,3 +64,20 @@ curl -L https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt
[kuroit](https://my.kuroit.com/aff.php?aff=5) 中的 美国凤凰城 regular
[datalix](https://t.me/+UHVoo2U4VyA5NTQ1/338) 中的 德国AMD 促销
## 无 CDN 模式WITHOUTCDN
如果服务器网络非常好无需加速,或希望完全禁用 CDN 加速,可在执行脚本前设置:
```shell
export WITHOUTCDN=TRUE
```
也可以只对单次命令生效:
```shell
WITHOUTCDN=TRUE
```
设置后,脚本执行过程中将不再尝试使用 CDN 加速地址。

View File

@@ -153,4 +153,20 @@ iptables -t nat -L
```shell
conntrack -L | grep <端口>
```
```
## 无 CDN 模式WITHOUTCDN
如果服务器网络非常好无需加速,或希望完全禁用 CDN 加速,可在执行脚本前设置:
```shell
export WITHOUTCDN=TRUE
```
也可以只对单次命令生效:
```shell
WITHOUTCDN=TRUE
```
设置后,脚本执行过程中将不再尝试使用 CDN 加速地址。

View File

@@ -116,3 +116,20 @@ systemctl status check-dns-podman
echo "nameserver 8.8.8.8" >> /etc/resolv.conf
echo "nameserver 1.1.1.1" >> /etc/resolv.conf
```
## 无 CDN 模式WITHOUTCDN
如果服务器网络非常好无需加速,或希望完全禁用 CDN 加速,可在执行脚本前设置:
```shell
export WITHOUTCDN=TRUE
```
也可以只对单次命令生效:
```shell
WITHOUTCDN=TRUE
```
设置后,脚本执行过程中将不再尝试使用 CDN 加速地址。

View File

@@ -302,3 +302,20 @@ curl -sSLk 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_rei
[Google cloud platform - GCP](https://console.cloud.google.com/) 的 AMD 服务器
## 无 CDN 模式WITHOUTCDN
如果服务器网络非常好无需加速,或希望完全禁用 CDN 加速,可在执行脚本前设置:
```shell
export WITHOUTCDN=TRUE
```
也可以只对单次命令生效:
```shell
WITHOUTCDN=TRUE
```
设置后,脚本执行过程中将不再尝试使用 CDN 加速地址。

View File

@@ -103,3 +103,20 @@ bash <(curl -sSL https://raw.githubusercontent.com/oneclickvirt/qemu/main/qemuin
bash <(curl -sSL https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt/qemu/main/scripts/qemuuninstall.sh)
bash <(curl -sSL https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt/qemu/main/qemuinstall.sh)
```
## 无 CDN 模式WITHOUTCDN
如果服务器网络非常好无需加速,或希望完全禁用 CDN 加速,可在执行脚本前设置:
```shell
export WITHOUTCDN=TRUE
```
也可以只对单次命令生效:
```shell
WITHOUTCDN=TRUE
```
设置后,脚本执行过程中将不再尝试使用 CDN 加速地址。