保姆级搭建教程,Project Zomboid Terraria 等游戏服务器搭建流程, 当然本教程试用于你已经购买了一台云服务器,有不懂的可以留言或者私信
yum install curl wget tar bzip2 gzip nmap-ncat unzip python3 binutils bc jq tmux glibc.i686 libstdc++ libstdc++.i686
cd ~
wget -O linuxgsm.zip https://ghproxy.com/https://github.com/GameServerManagers/LinuxGSM/archive/refs/heads/master.zip && unzip linuxgsm.zip
cp -r ~/LinuxGSM-master/lgsm ~/lgsm
chmod +x ~/lgsm/functions/*.sh
mkdir ~/steamcmd
cd ~/steamcmd/
下载steamCMD
wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
tar -xvzf steamcmd_linux.tar.gz
~/steamcmd/steamcmd.sh
登录
login 你用用户名
然后输入密码回车 ,linux不显示输入密码 输入完直接回车登录,登录失败检查你的邮件验证
set_steam_guard_code 邮件验证码
然后重新登录
adduser pzserver
su - pzserver
wget -O linuxgsm.sh https://linuxgsm.sh && chmod +x linuxgsm.sh && bash linuxgsm.sh pzserver
./pzserver install
LinuxGSM官方文档: Project Zomboid
adduser terrariaserver
su - terrariaserver
wget -O linuxgsm.sh https://linuxgsm.sh && chmod +x linuxgsm.sh && bash linuxgsm.sh terrariaserver
mkdir -p ~/lgsm/config-lgsm/terrariaserver/
echo steamuser=“你自己的steam账号” >> ~/lgsm/config-lgsm/terrariaserver/common.cfg
echo steampass=“你自己的steam密码” >> ~/lgsm/config-lgsm/terrariaserver/common.cfg
./terrariaserver install
LinuxGSM官方文档: Terraria