One of the many things you can and may want to do on our Nethosting Cloud system is run a Minecraft online game server. Our linux cloud environment is the perfect place to get one spun up too! If you are new to Nethosting and do not currently have a server with us, you could start off with our lowest Cloud Hosting plan, and latter purchase more RAM if you are noticing slowdowns on your Minecraft server. Once you have a server with us (with Centos 6 or 7 installed) you can install Minecraft and get playing!

 

Installing Minecraft

To install the default or vanilla Minecraft server, please do the following on your Nethosting Cloud Server:

1: Open an SSH client and login to your Cloud Server make sure the user you are logged into is a sudoer.

2: Create the folder that you want to install Minecraft to by running this command:

mkdir minecraft

This can be anywhere in the file structure, but it is usually best to put it in your /home directory.

3: Change to the minecraft directory by running this command:

cd minecraft

4: At this point you should verify if you have Java installed, to do this run the following command:

java -version

If java is not installed please run:

    sudo yum install java

5: Now you need to download the Minecraft Java file. You can do this by going to minecraft.net, clicking on the menu, going to trial & download, and clicking where it says “setup your own Minecraft server”. Once you are on that page right click on the link that says “minecraft_server.#.##.jar” and do copy link location. Once you have that copied go back into run this command with the link pasted in:

wget “paste link here”

6: Now you need to make sure to open the port that you will have Minecraft listen on:

sudo iptables -A INPUT -p tcp -m tcp –dport 25565 -j ACCEPT

sudo service iptables save

sudo service iptables restart

(If you would like to use a port other than the default 25565, you will need to run the server once to create server.properties file needed to change the port.)

7: To run Minecraft when you are not connected to your Nethosting Cloud server, you will need Screen installed:

sudo yum install screen

(Screen is an application that allows you to keep commands running in a separate “window” while you are not SSH’ed to the server.)

8: Now it’s time to start the Minecraft Server for the very first time!

screen java -Xmx1024M -Xms1024M -jar minecraft_server.#.##.jar nogui

(Change where it has .#.## to the correct version number for your Minecraft install)

9: You can exit SSH or use ctrl+a+d to exit the Screen session. This will not close it down. To open the Screen session, you can type screen -r. If you have more than one Screen session running then you would need to know the instance number, which typing screen -list will provide for you.

 

You Minecraft server is now set up! You can look online for information about editing the server properties files and various other modifications that you may want to make to the server. Now go out there and get building!

For more information on Minecraft visit Minecraft.net.