VPS

How to Install Minecraft Server on CentOS 7

Introduction

Have you been playing Minecraft for some time now and decided that it’s time to create your own Minecraft server? It’s quite easy, you just need to make sure that your VPS meets listed requirements as Minecraft is a resource-intensive application. In this tutorial you will learn how to install Minecraft server on CentOS 7 VPS.

What you’ll need

Before you begin this guide make sure your VPS meets the following requirements:

  • At least 1 GB of RAM
  • 5 GB disk space
  • SSH root access

Step 1 — Installing components

Firstly, you will have to install Java as Minecraft is built purely on it. Next package will be Screen, it is required for the Minecraft server to work once the SSH session ends. Connect to your VPS server via SSH (Windows users can use Putty SSH client for this) and run this command to install both packages:

yum install java screen -y

Step 2 — Installing and configuring Minecraft

In order to organize the installation, you should create a dedicated directory for Minecraft by running this command:

mkdir minecraft

Then just change the working directory to the one that you have just created:

cd minecraft

Download Minecraft server package:

wget -O minecraft_server.jar https://s3.amazonaws.com/Minecraft.Download/versions/1.10.2/minecraft_server.1.10.2.jar

Start the Screen with adequate name:

screen -S "Minecraft server"

Accept EULA agreement by changing the value from false to true in eula.txt file:

nano eula.txt

Run the server using this command:

java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui

The output should be similar to this:

[Server thread/INFO]: Starting minecraft server version 1.10.2
[Server thread/INFO]: Loading properties
[Server thread/INFO]: Default game type: SURVIVAL
[Server thread/INFO]: Generating keypair
[Server thread/INFO]: Starting Minecraft server on *:25565
[Server thread/INFO]: Using epoll channel type
[Server thread/INFO]: Preparing level "world"
[Server thread/INFO]: Preparing start region for level 0
[Server thread/INFO]: Preparing spawn area: 7%
[Server thread/INFO]: Preparing spawn area: 14%
[Server thread/INFO]: Preparing spawn area: 21%
[Server thread/INFO]: Preparing spawn area: 28%
[Server thread/INFO]: Preparing spawn area: 36%
[Server thread/INFO]: Preparing spawn area: 47%
[Server thread/INFO]: Preparing spawn area: 58%
[Server thread/INFO]: Preparing spawn area: 68%
[Server thread/INFO]: Preparing spawn area: 80%
[Server thread/INFO]: Preparing spawn area: 90%
[Server thread/INFO]: Done (11.695s)! For help, type "help" or "?"

Minecraft server has been successfully started, you can exit the Screen using CTRL-A + D keyboard shortcut.

Settings of the server can be changed by editing the options file:

nano server.properties

#Minecraft server properties
#Thu Oct 13 22:15:35 EDT 2016
max-tick-time=60000
generator-settings=
force-gamemode=false
allow-nether=true
gamemode=0
enable-query=false
player-idle-timeout=0
difficulty=1
spawn-monsters=true
op-permission-level=4
announce-player-achievements=true
pvp=true
snooper-enabled=true
level-type=DEFAULT
hardcore=false
enable-command-block=false
max-players=20
network-compression-threshold=256
resource-pack-sha1=
max-world-size=29999984
server-port=25565
server-ip=
spawn-npcs=true
allow-flight=false
level-name=world
view-distance=10
resource-pack=
spawn-animals=true
white-list=false
generate-structures=true
online-mode=true
max-build-height=256
level-seed=
use-native-transport=true
enable-rcon=false
motd=A Minecraft Server

As you see, there are a lot of options that can be customized to your liking. For starters, you can increase max-players count or player-idle-timeout parameter.

Conclusion

Minecraft server installation was easy, now you can connect all your players using your VPS IP address and enjoy unlimited possibilities with Minecraft.

Add Comment

Click here to post a comment

Join thousands of subscribers worldwide

and get awesome deals & the newest tutorials to your email

Please wait...

Thank you for sign up!

More in VPS
How to Generate SSH Keys on PuTTY

Close