工具
精华
|
战斗力 鹅
|
回帖 0
注册时间 2018-12-6
|
楼主 |
发表于 2024-1-23 12:20
来自手机
|
显示全部楼层
本帖最后由 moeblack 于 2024-1-23 12:24 编辑
带宽一个人1M这样算
内存16G够6个人玩没问题,win建议用坛友写的脚本定时重启Linux内存管理机制还不错,可以单纯设置一个大Swap就够了- [url=home.php?mod=space&uid=118165]@Echo[/url] off
- SETLOCAL ENABLEDELAYEDEXPANSION
- :: Define the paths to the executables
- SET "GameServerExecutable=PalServer-Win64-Test-Cmd.exe"
- SET "RestartServerPath=C:\Program Files\SteamCMD\steamapps\common\PalServer\PalServer.exe"
- :: Set the interval for checking the server process (in seconds)
- SET /A checkInterval=120
- :: Set the interval for restarting the server (in seconds)
- SET /A restartInterval=14400
- :: Initialize the timer
- SET /A timer=0
- :loop
- :: Check if it's time to restart the server
- IF !timer! GEQ %restartInterval% (
- echo Time to restart the server.
- taskkill /F /IM "%GameServerExecutable%"
- timeout /t 3 /nobreak > NUL
- SET /A timer=0
- )
- :: Check if the game server process is running
- tasklist /FO "csv" /FI "IMAGENAME eq %GameServerExecutable%" 2>NUL | find /I /N "%GameServerExecutable%">NUL
- IF "%ERRORLEVEL%"=="1" (
- echo %GameServerExecutable% is not running, starting PalServer.exe...
- start "" "%RestartServerPath%"
- SET /A timer=0
- )
- :: Wait for the specified check interval
- timeout /t %checkInterval% /nobreak > NUL
- :: Increment the timer
- SET /A timer+=checkInterval
- :: Loop back
- GOTO loop
复制代码
—— 来自 HUAWEI ALN-AL80, Android 12上的 S1Next-鹅版 v2.1.2
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
评分
-
查看全部评分
|