篡命师 发表于 2022-8-13 12:49:56

阿拉德之怒清理垃圾日志

游戏运行久了都会出现垃圾日志,你可以通过ssh执行以下命令清理垃圾,也可以自己打包个脚本宝塔定时循环执行

#!/bin/sh
rm -fr /home/root/pre-publish-new/server_res/AdminServer/Log/*
rm -fr /home/root/pre-publish-new/server_res/AdminServer/GameLog/*
rm -fr /home/root/pre-publish-new/server_res/GateServer1/Log/*
rm -fr /home/root/pre-publish-new/server_res/GateServer2/Log/*
rm -fr /home/root/pre-publish-new/server_res/RecordServer/Log/*
rm -fr /home/root/pre-publish-new/server_res/SceneServer1/Log/*
rm -fr /home/root/pre-publish-new/server_res/SceneServer2/Log/*
rm -fr /home/root/pre-publish-new/server_res/WorldServer/Log/*

cody 发表于 2024-1-10 16:29:49

666666666666
页: [1]
查看完整版本: 阿拉德之怒清理垃圾日志