You are viewing our Forum Archives. To view or take place in current topics click here.
[How-To] Setup a minecraft server on a Linux VPS
Posted:
[How-To] Setup a minecraft server on a Linux VPSPosted:
Status: Offline
Joined: May 30, 201014Year Member
Posts: 28
Reputation Power: 1
Setup a minecraft server on a Linux VPS
[Made by: Kink]
[Made by: Kink]
What you need:
1. Linux VPS [OS: CentOS 5.5 64 bit recommended]
2. Putty or another terminal management program.
I'm making this as easy as I possibly can, if it looks like I'm writing this as if everyone on the forum is literally brain dead, I'm sorry I just don't want any mixups, confusion or anything like that.
Tutorial:
1.) Login to your VPS via Putty or the other terminal you're using and enter the command below.
which java
[This is to check if you currently have Java on your system, if you already do...I would suggest re-installing it just to be safe]
2.) Installing Java on the machine
Type in the command:
yum install java-1.6.0-openjdk
Your system will now attempt to install java build 1.6.0, which is the version required to run the minecraft server software. Just let it run, if it asks any questions just type "y" where/when it asks for you to do so.
After running, java should now be installed. What you should do now is check if it has by running the "which java" command again, you should get the return value of the location of which java was installed on your server. Using this location(marked as "JavaLocationGoesHere" below), enter the command below:
JavaLocationGoesHere -version
Now, after running that command you should be prompted with the return of "Java Version "1.6.0" if so, you have successfully installed java and are ready to continue to setting up your server.
3.) Creating/setting up the Minecraft Directory
Let's create a new directory named "minecraft" by entering the command
mkdir minecraft
Now let's jump into that directory by using the command
cd minecraft
After entering that command, you should be greeted with the return of "username@server minecraft]#"
4.) Setting up a new screen, to keep the server running after the terminal is exited.
Now, we need to create a new screen. This is important for when you close the terminal, the server stays up and continues to run without the need of the terminal being open on your computer 24/7.
Start by typing the command
screen -dmS minecraft -t minecraft
[Is CAsE SENsiTiVe]
Now after creating that screen session with the window ID of Minecraft, enter this command to attach to that created session.
screen -r minecraft
5.) Download the server file(s)
While we remain in the minecraft directory, were going to download the files in here. Start by running the command
wget http://minecraft.net/download/minecraft_server.jar
Let that finish downloading then continue to the 4th step.
6.) Running the server
This is the last step needed to get your server up and running, this code will start the server.
java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
[Where it says 1024M is where you type the amount of RAM you want the server to use, example: if you purchased a server with 2 Gigs of RAM and you want to use all 2 Gigs you would type 2000M in the replacement of 1024M.]
7.) Success!
You should now see your server starting up, creating your world, etc. I hope you enjoyed my tutorial and don't forget to say thanks and if you have any problems, please post and I will see what I can do to help you.
The following 1 user thanked Kink for this useful post:
EzMoneY (06-07-2011)
You are viewing our Forum Archives. To view or take place in current topics click here.