Docker 配置《饥荒》服务器
# Docker 配置《饥荒》服务器
# 一、安装SteamCMD
Create a user account named steam to run SteamCMD safely, isolating it from the rest of the operating system. Do not run steamcmd while operating as the root user - to do so is a security risk.
# 1、创建steam用户
As the root user, create the steam user
useradd -m steam
1
# 2、进入steam用户主目录
Go into its home folder
cd /home/steam
1
# 3、安装SteamCMD
这里作者推荐通过源安装或Docker安装的方式:
# 1)通过源安装
# ①根据系统类型安装steamcmd
It's recommended to install the SteamCMD package from your distribution repositories, if available
A、Ubuntu/Debian系统
sudo apt install steamcmd
1
注意:如果你使用的是64位的计算机,还需要安装multiverse
sudo add-apt-repository multiverse
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install lib32gcc1 steamcmd
1
2
3
4
2
3
4
B、RedHat/CentOS系统
yum install steamcmd
1
# ②链接steamcmd可执行文件
ln -s /usr/games/steamcmd steamcmd
1
# 2)通过Docker安装
If your server is running Docker, you can simply use
docker run -it --name=steamcmd cm2network/steamcmd bash
# 或
docker run -p 11001:11001 -p 11000:11000 -p 27019:27019 -p 27018:27018 \
-p 8769:8769 -p 8768:8768 -p 10889:10889 -p 10889:10889 -d --name=survival_leo survival_leo
1
2
3
4
5
2
3
4
5
注意:
1、steamcmd.sh位置:/home/steam/steamcmd
2、该映像可用作基于Steam的专用服务器的基础映像
steamcmd.sh location:
/home/steam/steamcmd
This image can be used as a base image for Steam-based dedicated servers.
参考资料
1、SteamCMD,valvesoftware 2、
上次更新: 2020/06/11, 15:06:00
- 01
- Activiti使用手册(4)- Bpmn2规范06-11
- 02
- linux手动RPM安装gcc,g++06-11