Install Minecraft Server on CentOS 6 x64
This article will guide you through the install and setup process for launching a Minecraft Server on a high performance SSD VPS at Vultr.
Requirements:
- Putty SSH Client
- 1GB RAM VPS Server With CentOS 6 x64 Installed.
Install MineCraft Server
Login To Your New CentOS 6 1GB RAM VPS Server at Vultr and install Java 1.6.0 Open JDK
1 2 3 4 5 |
ssh root@ip.ip.ip.ip [root@vultr ~]# yum install java-1.6.0-openjdk <some output here> Is this ok [y/N]: y |
Once you have installed the JDK we should make a user to run your Minecraft Server under. This is for security purposes as it is not good practice to run a minecraft server as root!
1 2 3 4 5 6 7 |
adduser mcserver passwd mcserver #set a secure password. yum install screen #this allows you to run screen while su'd from root for the next step chown mcserver `tty` |
Now lets change users and install Minecraft!
1 2 3 4 5 6 7 8 9 |
su - mcserver mkdir minecraft cd minecraft wget http://minecraft.net/download/minecraft_server.jar chmod +x minecraft_server.jar screen #start your Minecraft Server java -Xmx768M -Xms768M -jar minecraft_server.jar nogui |
Congratulations, your Minecraft Server should now be up and running on your high performance SSD VPS Server!
Notes
To install on a 768MB VPS follow the same commands above but change the last java command to:
1 2 |
java -Xmx512M -Xms512M -jar minecraft_server.jar nogui |
If you require more players(and thus more RAM) you can launch a larger instance and then simply subtract 256M from the amount of RAM your instance has allocated. For example a 4096 instance would launch with -XmX3840M -Xms3840M