In this tutorial, I will be showing you how you can install and set up a Minecraft Server on CentOS 6.5. To do this, you will need to either have access to a VM or a Dedicated Server by ssh or be sitting in front of one. This tutorial will be based on a clean installation of CentIOS 6.5. Once you have done this and logged in as root, you will need to make sure to update all packages on it.
yum -y update
Now that your server is up to date, you will need to install Java, nano and screen.
yum install -y java-1.6.0-openjdk nano screen
Now that you have done this, you should go over to minecraft.net and download the latest minecraft server.jar. The one I have is https://s3.amazonaws...erver.1.7.9.jar. We can download this by typing
Now that we have this downloaded, we can go and create a folder to store our minecraft files in.
We can then transfer the file we downloaded to this folder and change its name
mv minecraft_server.1.7.9.jar minecraft/mc.jar
This will move the file to the minecraft folder and name it mc.jar. Next, we may aswell move to this directory
Now we have to make sure that the file is executable.
chmod +x mc.jar
We should now just create a new session of Screen so that we can access our MC server at a later date.
We are now ready to start up our minecraft server
java -Xmx1024M -Xms1024M -jar mc.jar nogui
The two occasions where 1024M comes up is the amount of memory we are providing to the server. This can be changed to whatever you like.
If we ever need to close the ssh connection, next time we connect, all we have to do is type
To connect to our old minecraft connection and should be allowed to make any minecraft commands.