在 这个帖子 下有位佬给我提供了灵感,既然空闲会关机,那让其不空闲不就行了
注意:此方法暂未验证有效性,仅通过合理性猜测
安装 stress-ng 工具
apt update && apt install stress-ng -y
创建服务脚本 /etc/systemd/system/stress-ng-load.service
[Unit]
Description=Stress-ng CPU 15% Load Service
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/stress-ng --cpu 1 --cpu-load 15
Restart=always
RestartSec=3s
[Install]
WantedBy=multi-user.target
然后启动
systemctl daemon-reload
systemctl enable --now stress-ng-load
7
12
还在为IP不纯、平台风控、频繁验证而烦恼? 丽萨主机海外原生IP VPS,双ISP住宅IP,覆盖美国、香港、日本、新加坡、台湾、德国、越南、英国等热门地区,适合跨境电商、社媒运营、AI工具、流媒体及海外业务使用。
12 risposte
Ordinamento