Factorio服务器部署指南

Centos 8:

yum install screen

https://www.factorio.com/download 查看最新Linux安装包(Headless)链接

wget https://www.factorio.com/get-download/1.0.0/headless/linux64

tar -xvf linux64

cd /factorio/data

cp server-settings.example.json server-settings.json

vi data/server-settings.example.json

填写服务器名称、描述、Factorio用户名和密码,保存

/root/factorio/bin/x64/factorio –create /root/factorio/saves/save1.zip

screen -S factorio

/root/factorio/bin/x64/factorio –port 34197 –start-server /root/factorio/saves/save1.zip –server-settings /root/factorio/data/server-settings.json

放开34197端口