?

📝 SSH命令控制采集任务

启动采集: nohup /usr/bin/php /www/wwwroot/cjhy.binanee.fun/scraper_test/scrape_vaults.php > /www/wwwroot/cjhy.binanee.fun/scraper_test/scraper_test.log 2>&1 &
停止采集(推荐): ps aux | grep '[p]hp.*scrape_vaults.php' | awk '{print $2}' | xargs kill -9 2>/dev/null
此命令会查找并停止所有正在运行的采集进程
或使用PID文件(如果存在):
kill $(cat /www/wwwroot/cjhy.binanee.fun/scraper_test/scraper.pid) 2>/dev/null || rm -f /www/wwwroot/cjhy.binanee.fun/scraper_test/scraper.pid
暂停采集: touch /www/wwwroot/cjhy.binanee.fun/scraper_test/pause.flag
恢复采集: rm /www/wwwroot/cjhy.binanee.fun/scraper_test/pause.flag
查看采集状态: ps aux | grep scrape_vaults.php 查看采集日志: tail -f /www/wwwroot/cjhy.binanee.fun/scraper_test/scraper_test.log 清理日志文件(推荐,需要 root 权限): sudo tail -n 5000 /www/wwwroot/cjhy.binanee.fun/scraper_test/scraper_test.log > /www/wwwroot/cjhy.binanee.fun/scraper_test/scraper_test.log.tmp && sudo mv /www/wwwroot/cjhy.binanee.fun/scraper_test/scraper_test.log.tmp /www/wwwroot/cjhy.binanee.fun/scraper_test/scraper_test.log
或使用 PHP 脚本:
php /www/wwwroot/cjhy.binanee.fun/scraper_test/cleanup_log.php

🚀 服务器端采集进度监控

实时监控金库地址采集任务进度

idle 暂无采集任务
🔄 自动刷新中
进度 0 / 0
0%
总计
0
成功
0
失败
0
跳过
0
新地址
0
开始时间: -
结束时间: -
已用时间: 0秒
地址库最后接收时间: -

设置

成功验证超过此次数的地址将被跳过
🏠 返回首页

📝 SSH命令控制采集任务

启动采集:
nohup /usr/bin/php /www/wwwroot/cjhy.binanee.fun/scraper_test/scrape_vaults.php > /www/wwwroot/cjhy.binanee.fun/scraper_test/scraper_test.log 2>&1 &
停止采集(推荐):
ps aux | grep '[p]hp.*scrape_vaults.php' | awk '{print $2}' | xargs kill -9 2>/dev/null
此命令会查找并停止所有正在运行的采集进程(最可靠)

或使用PID文件(如果存在):
kill $(cat /www/wwwroot/cjhy.binanee.fun/scraper_test/scraper.pid) 2>/dev/null || rm -f /www/wwwroot/cjhy.binanee.fun/scraper_test/scraper.pid
或强制停止:
kill -9 $(cat /www/wwwroot/cjhy.binanee.fun/scraper_test/scraper.pid) 2>/dev/null || rm -f /www/wwwroot/cjhy.binanee.fun/scraper_test/scraper.pid
暂停采集:
touch /www/wwwroot/cjhy.binanee.fun/scraper_test/pause.flag
恢复采集:
rm /www/wwwroot/cjhy.binanee.fun/scraper_test/pause.flag
查看采集状态:
ps aux | grep scrape_vaults.php
查看采集日志:
tail -f /www/wwwroot/cjhy.binanee.fun/scraper_test/scraper_test.log
清理日志文件(推荐,需要 root 权限):
sudo tail -n 5000 /www/wwwroot/cjhy.binanee.fun/scraper_test/scraper_test.log > /www/wwwroot/cjhy.binanee.fun/scraper_test/scraper_test.log.tmp && sudo mv /www/wwwroot/cjhy.binanee.fun/scraper_test/scraper_test.log.tmp /www/wwwroot/cjhy.binanee.fun/scraper_test/scraper_test.log
直接截取最后5000行(最可靠的方法)

或使用 PHP 脚本(如果权限允许):
php /www/wwwroot/cjhy.binanee.fun/scraper_test/cleanup_log.php
自动清理,只保留最近6小时或5000条日志

或修改文件权限后清理:
sudo chmod 666 /www/wwwroot/cjhy.binanee.fun/scraper_test/scraper_test.log && php /www/wwwroot/cjhy.binanee.fun/scraper_test/cleanup_log.php
💡 提示: 也可以通过上方的按钮进行可视化操作。