Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Mrmineduce21/Oracle_OneKey_Active
为了应对甲骨文最新回收机制而作的垃圾脚本
https://github.com/Mrmineduce21/Oracle_OneKey_Active
Last synced: 14 days ago
JSON representation
为了应对甲骨文最新回收机制而作的垃圾脚本
- Host: GitHub
- URL: https://github.com/Mrmineduce21/Oracle_OneKey_Active
- Owner: Mrmineduce21
- Created: 2023-01-31T04:31:01.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-15T11:53:34.000Z (over 1 year ago)
- Last Synced: 2024-07-31T08:19:08.648Z (3 months ago)
- Language: Shell
- Size: 95.7 KB
- Stars: 294
- Watchers: 4
- Forks: 130
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Oracle_OneKey_Active
为了应对甲骨文最新回收机制而作的垃圾脚本说在前面:
由于甲骨文目前对不活跃机器实行回收,本脚本的作用就是 通过下载文件,上传,cpu跑分让甲骨文以为你是"活跃用户"
脚本仅做辅助,无法保证不被删机转载请标明原出处
以下三个脚本都是执行后 在后台静默运行,脚本不会开机自启动,请重启后手动运行脚本
----======================== 更 新 内 容 ============================----
更新全自动 吃掉CPU
更新全自动 吃掉内存使用前请删除旧版文件
```
cd /root && rm Fuck_OCPU.sh
```----============================ C P U ===============================----
OneKeyFuck_OCPU.sh
一键吃掉CPU(可精准控制)【OracleLinux不可用】
```
cd /root && wget -qO OneKeyFuck_OCPU.sh https://raw.githubusercontent.com/Mrmineduce21/Oracle_OneKey_Active/main/OneKeyFuck_OCPU.sh && chmod +x OneKeyFuck_OCPU.sh && bash OneKeyFuck_OCPU.sh
```释放CPU资源
```
pid=$(ps -ef | grep "bash" | grep '/bin/bash' | grep -v grep | awk '{print $2}') && kill -9 $pid
```当ssh终端出现 nohup: appending output to 'nohup.out' 时按回车即可
============================================================
cpu_usage.sh(无法做到精确控制占用)
使用之前使用命令先查询下cpu的个数
cat /proc/cpuinfo | grep “processor”|wc -l
或 grep processor /proc/cpuinfo |wc -l
一键吃掉1核心
```
cd /root && wget -qO cpu_usage.sh https://raw.githubusercontent.com/Mrmineduce21/Oracle_OneKey_Active/main/cpu_usage.sh && chmod +x cpu_usage.sh && bash cpu_usage.sh consume 1
```取消CPU消耗
```
cd /root && wget -qO cpu_usage.sh https://raw.githubusercontent.com/Mrmineduce21/Oracle_OneKey_Active/main/cpu_usage.sh && chmod +x cpu_usage.sh && bash cpu_usage.sh release
```需要构造消耗2颗cpu的资源运行脚本sh cpu_usage.sh consume 2,此时运行top命令查看cpu的使用率。如果要释放cpu资源
运行sh cpu_usage.sh release即可释放cpu资源。----=================== M e m o r y =========================----
OneKey_FuckMemory.sh
脚本将自动判断内存占用是否到达10%
如果没到达则占用内存至15%
真--一键吃内存
```
cd /root && wget -qO OneKey_FuckMemory.sh https://raw.githubusercontent.com/Mrmineduce21/Oracle_OneKey_Active/main/OneKey_FuckMemory.sh && chmod +x OneKey_FuckMemory.sh && bash OneKey_FuckMemory.sh
```
取消内存消耗(释放内存)
```
cd /root && wget -qO memory_usage.sh https://raw.githubusercontent.com/Mrmineduce21/Oracle_OneKey_Active/main/memory_usage.sh && chmod +x memory_usage.sh && bash memory_usage.sh release
```============================================================
memory_usage.sh
使用方法: 需要root 权限 启动bash memory_usage.sh consume 内存大小
eg : bash memory_usage.sh consume 1G 即消耗1G 的内存
一键吃内存(100MB)
```
cd /root && wget -qO memory_usage.sh https://raw.githubusercontent.com/Mrmineduce21/Oracle_OneKey_Active/main/memory_usage.sh && chmod +x memory_usage.sh && bash memory_usage.sh consume 100M
```一键吃内存(2G)
```
cd /root && wget -qO memory_usage.sh https://raw.githubusercontent.com/Mrmineduce21/Oracle_OneKey_Active/main/memory_usage.sh && chmod +x memory_usage.sh && bash memory_usage.sh consume 2G
```一键吃内存(20G)[适用于24G内存]
```
cd /root && wget -qO memory_usage.sh https://raw.githubusercontent.com/Mrmineduce21/Oracle_OneKey_Active/main/memory_usage.sh && chmod +x memory_usage.sh && bash memory_usage.sh consume 20G
```取消内存消耗
```
cd /root && wget -qO memory_usage.sh https://raw.githubusercontent.com/Mrmineduce21/Oracle_OneKey_Active/main/memory_usage.sh && chmod +x memory_usage.sh && bash memory_usage.sh release
```