How To Install 7 Days to Die on CentOS 7

In this tutorial, I’ll be explaining how to to setup a 7 Days to Die server on CentOS 7.


You need to own this game on your Steam account.

Let’s make sure the system is fully updated before we start. Then we’ll be creating a new user for the server. Make sure to use a tough password.

yum updateyum upgrade -yadduser 7d2dpasswd 7d2d

Let us also open the necessary firewall ports.

firewall-cmd --zone=public --add-port=26900/tcp --permanentfirewall-cmd --zone=public --add-port=26900/udp --permanentfirewall-cmd --reload

Install the required libs to run SteamCMD.

yum install glibc.i686 libstdc++.i686 -y

Now, let’s switch to the user that we have just created.

su 7d2dcd ~

Time to download SteamCMD.

wget xf steamcmd_linux.tar.gz

Now we have to run SteamCMD and install the server files. Please note, if you have Steam Guard enabled, you have to check your email for the code to login.

./steamcmd.shlogin YourAccount*enter your password and steam guard code if necessary*force_install_dir ./7d2dapp_update 294420 validate

The server software is now installed.

Customizing the server

Want to customize the name, description and perhaps the slots of the server?

To change the name of your server, edit the file serverconfig.xml.

nano serverconfig.xml

Only change the value inside the value="" part.

  • On line 5, change My Game Host to whatever you want.
  • On line 7, change 8 to the amount of slots you want. Max slots is 32.
  • On line 8, change A 7 Days to Die server to the description of your choice.

Updating your server

Need to update due to Steam Updates? Don’t worry! With this simple script, you can update your server in just one command.

Let’s create the file update_7d2d.txt first.

nano /home/7d2d/update_7d2d.txt

Then, paste the following:

login YourUser YourPasswordforce_install_dir ./7d2dapp_update 294420quit

And now to update your server, all you have to do is run the following command:

cd ~./ +runscript update_7d2d.txt

Running your server

Navigate to the following folder and run your server.

cd /home/7d2d/7d2d/screen -dmS 7d2d ./ -configfile=serverconfig.xml

The server is now running in the background. To shut down the server, run the following command:

pkill 7Days

Enjoy your new 7D2D server!

Want to contribute?

You could earn up to $300 by adding new articles

Submit your article
Suggest an update
Request an article

No comments

Powered by Blogger.