前言
本文搭建教程为docker方式,一个服务器可以运行多个帕鲁服务器(取决于你的服务器配置)
启动镜像
docker run -d --restart=always --name PalServer -u game -p 8211:8211/udp pasharp/pal_server /home/game/Steam/steamapps/common/PalServer/PalServer.sh
更新游戏
/home/game/.local/share/Steam/steamcmd/steamcmd.sh +login anonymous +app_update 2394010 validate +quit
shell定时任务
#!/bin/bash
docker restart PalServer
echo "内存使用率超过90%,已重启PalServer"