-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7039fa2
commit 503b612
Showing
8 changed files
with
245 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,43 @@ | ||
--- | ||
outline: deep | ||
--- | ||
|
||
# 仓库 | ||
|
||
https://github.com/spiritLHLS/Oracle-server-keep-alive-script | ||
|
||
# Oracle-server-keep-alive-script | ||
|
||
实际不止可以在甲骨文服务器上使用,也可以使用在任意ARM或X86_64架构的系统,用作资源占用 | ||
|
||
## 甲骨文服务器保活脚本 | ||
|
||
适配系统:已在Ubuntu 20+,Debian 10+, Centos 7+, Oracle linux 8+,AlmaLinux 8.5+ | ||
|
||
上述系统验证无问题,别的主流系统应该也没有问题 | ||
|
||
可选占用:CPU,内存,带宽 | ||
|
||
安装完毕后如果有问题请卸载脚本反馈问题(重复卸载也没问题) | ||
|
||
所有资源(除了CPU)可选默认配置则动态占用,实时调整,避免服务器有别的任何资源已经超过限额了仍然再占用资源 | ||
|
||
为避免GitHub的CDN抽风加载不了新内容,所有新更新已使用[Gitlab仓库](https://gitlab.com/spiritysdx/Oracle-server-keep-alive-script) | ||
|
||
由于speedtest-go的release依赖于GitHub,所以请检查 [www.githubstatus.com](https://www.githubstatus.com/) ,有问题时无法安装带宽占用 | ||
|
||
### 基础开发完毕,测试中,有问题请在issues中反馈 | ||
|
||
选项1安装,选项2卸载,选项3更新安装引导脚本,选项4退出脚本 | ||
|
||
安装过程中无脑回车则全部可选的占用都占用,不需要什么占用输入```n```再回车 | ||
|
||
如果选择带宽占用,会询问使用speedtest-go占用还是使用wget占用,按照提示进行选择即可 | ||
|
||
有询问是否需要带宽占用的参数自定义,这时候默认选项就是```n```,回车就使用默认配置,输入```y```再回车则需要按照提示自定义参数 | ||
|
||
``` | ||
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 | ||
``` | ||
|
||
或 | ||
|
||
``` | ||
bash oalive.sh | ||
``` | ||
|
||
或 | ||
|
||
``` | ||
bash <(wget -qO- --no-check-certificate https://gitlab.com/spiritysdx/Oracle-server-keep-alive-script/-/raw/main/oalive.sh) | ||
``` | ||
|
||
### 说明 | ||
|
||
- 提供两种CPU占用模式:DD模拟占用和科学计算模式,用户可以自由选择,占用范围设置在15%至25%之间,更推荐DD模拟占用 | ||
- DD模拟占用在守护进程中设置了CPU占用的最高限制 | ||
- 默认情况下,CPU占用设置为25%最高值,计算方法是核数乘以12%,如果计算结果低于25%,则设置为该值;如果计算结果高于25%,则按照计算结果的比例进行设置。 | ||
- 内存占用设置为占用总内存的20%,占用时间为300秒,休息时间为300秒。 | ||
- 每300秒检测一次内存占用情况,并根据需要动态调整占用大小。如果内存占用已经大于20%,则不增加占用。 | ||
- 在占用过程中,使用守护进程和开机自启服务,以确保占用任务持续且有效。 | ||
- 默认选项的带宽占用每45分钟下载一次大小在1G至10G之间的文件,只进行下载而不保存。在下载过程中会占用硬盘空间,但在下载完成后会自动释放。 | ||
- 默认选项的带宽占用动态调整实际下载的带宽/速率,限制每次下载的最长时长为6分钟。在每次下载之前,会测试最大可用带宽,并根据实时结果将下载速率设置为30%的带宽。 | ||
- 带宽占用测试使用了speedtest-cli和speedtest-go两种工具,以防其中之一不可用时使用第二种工具,用户可以自定义设置带宽占用,此时详见设置提示。 | ||
- 提供一键卸载所有占用服务的选项,卸载将删除所有脚本、服务、任务、守护进程和开机自启设置。 | ||
- 提供一键检查更新的功能,更新范围仅限于脚本更新。**请在更新后重新设置占用服务** | ||
- 对所有进程执行增加唯一性检测,避免重复运行,使用PID文件进行判断。 | ||
|
||
如若不希望一键的,希望自定义设置时间的,请查看[README_CRON.md](https://gitlab.com/spiritysdx/Oracle-server-keep-alive-script/-/blob/main/%20README_CRON.md)自行设置定时任务 | ||
--- | ||
outline: deep | ||
--- | ||
|
||
# 仓库 | ||
|
||
https://github.com/oneclickvirt/backtrace | ||
|
||
[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Foneclickvirt%2Fbacktrace&count_bg=%2323E01C&title_bg=%23555555&icon=sonarcloud.svg&icon_color=%23E7E7E7&title=hits&edge_flat=false)](https://hits.seeyoufarm.com) | ||
|
||
# backtrace | ||
|
||
三网回程路由线路测试 | ||
|
||
基于 https://github.com/zhanghanyun/backtrace 的重构和优化,与原版存在很大不同 | ||
|
||
路由的线路判断最终还是得人工判断的才准确,本项目测试结果仅供参考 | ||
|
||
## 功能 | ||
|
||
- [x] 检测回程显示IPV4地址时的线路,不显示IP地址时显示ASN检测不到,原版[backtrace](https://github.com/zhanghanyun/backtrace)也支持 | ||
- [x] 支持对```4837```、```9929```和```163```线路的判断,原版[backtrace](https://github.com/zhanghanyun/backtrace)也支持 | ||
- [x] 支持对```CN2GT```和```CN2GIA```线路的判断,原版[backtrace](https://github.com/zhanghanyun/backtrace)不支持 | ||
- [x] 支持对```CMIN2```和```CMI```线路的判断,原版[backtrace](https://github.com/zhanghanyun/backtrace)不支持 | ||
- [x] 支持对整个回程路由进行线路分析,与原版[backtrace](https://github.com/zhanghanyun/backtrace)仅进行一次判断不同 | ||
- [x] 修复原版[backtrace](https://github.com/zhanghanyun/backtrace)对IPV4地址信息获取时json解析失败依然打印信息的问题 | ||
- [x] 增加对全平台的编译支持,原版[backtrace](https://github.com/zhanghanyun/backtrace)仅支持linux平台的amd64和arm64架构 | ||
|
||
## 使用 | ||
|
||
```shell | ||
curl https://raw.githubusercontent.com/oneclickvirt/backtrace/main/backtrace_install.sh -sSf | sh | ||
``` | ||
|
||
更多架构请查看 https://github.com/oneclickvirt/backtrace/releases/tag/output | ||
|
||
## 概览图 | ||
|
||
![图片](https://github.com/oneclickvirt/backtrace/assets/103393591/4688f99f-0f02-486f-8ffc-78d30f2c2f95) | ||
|
||
![图片](https://github.com/oneclickvirt/backtrace/assets/103393591/2812a47d-4e6b-4091-9bb9-596af6c3c8bc) | ||
|
||
![图片](https://github.com/oneclickvirt/backtrace/assets/103393591/2e5cc625-e0da-41ff-85ff-9d21c01114a3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,70 @@ | ||
--- | ||
outline: deep | ||
--- | ||
|
||
# 仓库 | ||
|
||
https://github.com/spiritLHLS/addzram | ||
|
||
# addzram | ||
|
||
为linux服务器启用zram(压缩内存) | ||
|
||
```bash | ||
curl -L https://raw.githubusercontent.com/spiritLHLS/addzram/main/addzram.sh -o addzram.sh && chmod +x addzram.sh && bash addzram.sh | ||
``` | ||
|
||
类同前面的addswap项目 | ||
|
||
同样是给机器优化内存占用的东西,只不过zram是压缩内存占用,swap是附加虚拟内存增加内存空间,二者都会占用CPU资源,zram在CPU性能冗余的机器上使用更优 | ||
|
||
(理论上zram会比swap的性能占用低,但未实际测试过) | ||
|
||
**单位换算:输入 1024 产生 1G 的 zram 设备压缩内存,zram 设备大小不能大于实际内存大小** | ||
|
||
# 致谢 | ||
|
||
感谢 [@Ella-Alinda](https://github.com/Ella-Alinda) 提供优化建议 | ||
--- | ||
outline: deep | ||
--- | ||
|
||
# 仓库 | ||
|
||
https://github.com/spiritLHLS/Oracle-server-keep-alive-script | ||
|
||
# Oracle-server-keep-alive-script | ||
|
||
实际不止可以在甲骨文服务器上使用,也可以使用在任意ARM或X86_64架构的系统,用作资源占用 | ||
|
||
## 甲骨文服务器保活脚本 | ||
|
||
适配系统:已在Ubuntu 20+,Debian 10+, Centos 7+, Oracle linux 8+,AlmaLinux 8.5+ | ||
|
||
上述系统验证无问题,别的主流系统应该也没有问题 | ||
|
||
可选占用:CPU,内存,带宽 | ||
|
||
安装完毕后如果有问题请卸载脚本反馈问题(重复卸载也没问题) | ||
|
||
所有资源(除了CPU)可选默认配置则动态占用,实时调整,避免服务器有别的任何资源已经超过限额了仍然再占用资源 | ||
|
||
为避免GitHub的CDN抽风加载不了新内容,所有新更新已使用[Gitlab仓库](https://gitlab.com/spiritysdx/Oracle-server-keep-alive-script) | ||
|
||
由于speedtest-go的release依赖于GitHub,所以请检查 [www.githubstatus.com](https://www.githubstatus.com/) ,有问题时无法安装带宽占用 | ||
|
||
### 基础开发完毕,测试中,有问题请在issues中反馈 | ||
|
||
选项1安装,选项2卸载,选项3更新安装引导脚本,选项4退出脚本 | ||
|
||
安装过程中无脑回车则全部可选的占用都占用,不需要什么占用输入```n```再回车 | ||
|
||
如果选择带宽占用,会询问使用speedtest-go占用还是使用wget占用,按照提示进行选择即可 | ||
|
||
有询问是否需要带宽占用的参数自定义,这时候默认选项就是```n```,回车就使用默认配置,输入```y```再回车则需要按照提示自定义参数 | ||
|
||
``` | ||
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 | ||
``` | ||
|
||
或 | ||
|
||
``` | ||
bash oalive.sh | ||
``` | ||
|
||
或 | ||
|
||
``` | ||
bash <(wget -qO- --no-check-certificate https://gitlab.com/spiritysdx/Oracle-server-keep-alive-script/-/raw/main/oalive.sh) | ||
``` | ||
|
||
### 说明 | ||
|
||
- 提供两种CPU占用模式:DD模拟占用和科学计算模式,用户可以自由选择,占用范围设置在15%至25%之间,更推荐DD模拟占用 | ||
- DD模拟占用在守护进程中设置了CPU占用的最高限制 | ||
- 默认情况下,CPU占用设置为25%最高值,计算方法是核数乘以12%,如果计算结果低于25%,则设置为该值;如果计算结果高于25%,则按照计算结果的比例进行设置。 | ||
- 内存占用设置为占用总内存的20%,占用时间为300秒,休息时间为300秒。 | ||
- 每300秒检测一次内存占用情况,并根据需要动态调整占用大小。如果内存占用已经大于20%,则不增加占用。 | ||
- 在占用过程中,使用守护进程和开机自启服务,以确保占用任务持续且有效。 | ||
- 默认选项的带宽占用每45分钟下载一次大小在1G至10G之间的文件,只进行下载而不保存。在下载过程中会占用硬盘空间,但在下载完成后会自动释放。 | ||
- 默认选项的带宽占用动态调整实际下载的带宽/速率,限制每次下载的最长时长为6分钟。在每次下载之前,会测试最大可用带宽,并根据实时结果将下载速率设置为30%的带宽。 | ||
- 带宽占用测试使用了speedtest-cli和speedtest-go两种工具,以防其中之一不可用时使用第二种工具,用户可以自定义设置带宽占用,此时详见设置提示。 | ||
- 提供一键卸载所有占用服务的选项,卸载将删除所有脚本、服务、任务、守护进程和开机自启设置。 | ||
- 提供一键检查更新的功能,更新范围仅限于脚本更新。**请在更新后重新设置占用服务** | ||
- 对所有进程执行增加唯一性检测,避免重复运行,使用PID文件进行判断。 | ||
|
||
如若不希望一键的,希望自定义设置时间的,请查看[README_CRON.md](https://gitlab.com/spiritysdx/Oracle-server-keep-alive-script/-/blob/main/%20README_CRON.md)自行设置定时任务 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,37 @@ | ||
--- | ||
outline: deep | ||
--- | ||
|
||
# 仓库 | ||
|
||
https://github.com/oneclickvirt/convoypanel-scripts | ||
|
||
# convoypanel-scripts | ||
|
||
### One-click installation of convoy panel | ||
|
||
Prerequisites for installation: | ||
|
||
- PVE is installed | ||
- System is debian 11 | ||
- CPU at least 2 cores, hard disk at least 20G, memory at least 4G (memory covers swap) | ||
|
||
**I don't guarantee that this script is error-free, it's just for my own amusement.** | ||
|
||
``` | ||
curl -L https://github.com/oneclickvirt/convoypanel-scripts/raw/main/installconvoy.sh -o installconvoy.sh && chmod +x installconvoy.sh && bash installconvoy.sh | ||
``` | ||
|
||
### Thanks | ||
|
||
Base on https://github.com/oneclickvirt/pve | ||
|
||
Base on https://docs.convoypanel.com/guide/deployment/#installation | ||
|
||
Base on https://github.com/ConvoyPanel/panel | ||
--- | ||
outline: deep | ||
--- | ||
|
||
# 仓库 | ||
|
||
https://github.com/spiritLHLS/addswap | ||
|
||
# addswap | ||
|
||
为openvz、kvm虚拟化的linux服务器增加swap分区(虚拟内存) | ||
|
||
```bash | ||
curl -L https://raw.githubusercontent.com/spiritLHLS/addswap/main/addswap.sh -o addswap.sh && chmod +x addswap.sh && bash addswap.sh | ||
``` | ||
|
||
已增加openvz架构重启swap自动添加的 | ||
|
||
openvz这个添加=掩耳盗铃,实际受到虚拟化限制应该是无法添加的,只能由虚拟化的宿主机控制,同理LXC虚拟化的也只能由宿主机控制,都无法自主添加虚拟内存SWAP | ||
|
||
因此,该项目不再更新,除非另有需求 | ||
|
||
**单位换算:输入 1024 产生 1G SWAP内存** | ||
|
||
# 致谢 | ||
|
||
kvm分区原版脚本源自 https://www.moerats.com/ | ||
|
||
```bash | ||
curl -L https://www.moerats.com/usr/shell/swap.sh -o swap.sh && chmod +x swap.sh && bash swap.sh | ||
``` | ||
|
||
openVZ分区原版脚本源自 | ||
|
||
http://linux-problem-solver.blogspot.com/2013/08/create-fake-swap-in-openvz-vps-if-you-get-swapon-failed-operation-not-permitted-error.html | ||
|
||
感谢 [@fscarmen](https://github.com/fscarmen) 提供优化建议 |
Oops, something went wrong.