Unmetered Dedicated ServerDedicated Server SupportDedicated Server Live Help

How to Setup Minecraft on a Linux CentOS Server


Here is a tutorial how to set up Minecraft on a Linux CentOS Server.

 1. Download PuTTY to access SSH and install Minecraft.

2.) Installing Minecraft: Run the following commands in order one at a time through the command line terminal via SSH.

                yum install java-1.6.0-openjdk
                mkdir minecraft
                cd minecraft
                wget http://minecraft.net/download/minecraft_server.jar
                chmod +x minecraft_server.jar
                yum install screen
                java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui

Note: (*1024 value can be changed depending on how much RAM your Server has)

Example: 512MB RAM - java -Xmx512M -Xms512M -jar minecraft_server.jar nogui
Example: 2048MB RAM - java -Xmx2048M -Xms2048M -jar minecraft_server.jar nogui

To close PuTTY and keep Minecraft running.:

Control + a + d

To get back to the screen where Minecraft is running hold the following keys on your keyboard:

screen -r