保持服务器激活不关闭

使用系统级定时任务

  1. Linux/macOS 定时脚本

!/bin/bash

keep-cloudstudio.sh

URL="https://.net/a/*/edit"

while true; do
# 使用curl访问三丰 的云页面(保持免费云主机会话)
curl -s -o /dev/null "$URL"
-H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"

# 或者使用wget
# wget -q -O /dev/null "$URL"

echo "$(date): 页面访问保持活跃"

# 每1分钟执行一次
sleep 60

done
2. Windows 批处理脚本
@echo off
set URL=https://**.net/a/*/edit

:loop
echo %date% %time%: 访问 CloudStudio 页面
curl -s -o nul "%URL%"
timeout /t 300 /nobreak >nul
goto loop

posted @ 2026-03-13 18:07  王珞丹  阅读(1)  评论(0)    收藏  举报