So I keep getting requests to install Minecraft servers, and people wonder how I can get it done in less than 3 minutes. Fact is, I've done it so many times, I've practically perfected the quickest, and easiest way of installing a Minecraft server on a CentOS (Linux) based operating system. I'm here to show you how to do this in a few quick, short steps.
Requirements
- A VPS or dedicated server. You can grab one here.
- PuTTY to access SSH and install Minecraft.
Install Minecraft
After you've obtained a VPS / server and have downloaded PuTTY, you'll need to access your server. Open up PuTTY, enter your server's IP, then login to your server. You don't have to install PuTTY, it's a simple executable.
You don't have to know what any of this stuff is yet, just copy and paste your way through the command line terminal. Learn what it means later! Each line will be entered into SSH.
- yum install java-1.6.0-openjdk
- cd
- mkdir minecraft
- cd minecraft
- wget http://minecraft.net/download/minecraft_server.jar
- chmod +x minecraft_server.jar
- yum install screen
- screen
- java -Xmx512M -Xms512M -jar minecraft_server.jar nogui
No sweat, right? Your Minecraft server is now running, and you can have all your friends and the neighborhood login, and start building. Now, I'll go over a few basics since this tutorial hasn't covered everything, just follow along.
Quick Reference |
Resume "screen" after you've exited (Make sure you do "cd minecraft" first)
screen -r |
Start Minecraft on a 1GB server (Do this in screen on step 9).
java -Xmx768M -Xms768M -jar minecraft_server.jar nogui |
Start Minecraft on a 2GB server (Do this in screen on step 9).
java -Xmx1792M -Xms1792M -jar minecraft_server.jar nogui |
Exit Minecraft Do this while in screen to close PuTTY and keep Minecraft running.
CTRL + A + D (Hold these keys down at the same time) |
Install Nano - You will need a text editor in the future, just do it.
yum install nano |
If you have any questions, feel free to comment. If you don't already have a Minecraft server, consider supporting my Minecraft service and renting one from me. If you need any further help in regards to working with Minecraft, take a look at my knowledgebase in my client portal, you're bound to find something useful there.
And now, some references.