How to Host Your Own Minecraft Server
Many users are able to run Minecraft servers successfully on either a HostGator VPS or Dedicated server. HostGator does not support the use of Minecraft on our servers, and cannot guarantee performance for reasons outlined in this article. See below for more information on the following topics:
- Step 1: Identify Which Server You Need
- Step 2: Buy a Minecraft Server
- Step 3: Setup Minecraft on Your Server
Step 1: Identify Which Server You Need
Due to the wide range of possible uses for Minecraft, HostGator cannot guarantee performance on any of our servers, however, we are able to provide some guidelines and recommendations for vanilla Minecraft server installations (Installations of a basic Minecraft server without any mods) based on the following considerations:
- Memory Usage: Minecraft is Java based, and relies heavily on RAM. The number of players largely depends on the amount of RAM.
- Disk I/O: Minecraft is I/O intensive due to the way map generation is handled by the software. Servers with a larger number of players will experience performance issues on a VPS due to the shared disk read and write speeds.
- CPU Usage: Linux Minecraft servers only use a single CPU core. If mods or the load generated by your player activity cause enough CPU load on a VPS, the VPS may be put into cool down, or even suspended for the health of the server. A dedicated server is required to avoid these issues.
The following chart will show the level of server recommended* based on the number of expected players:
Important Note: A VPS is a shared server, and HostGator reserves the right to suspend users with resource intensive mods and player usage, such as too many players, players performing extreme actions with taxing resource usage affecting the server performance for other users.
|Snappy 1000||12||1000MB||2.4 GHz|
|Snappy 2000||23||2000MB||2.4 GHz|
|Snappy 4000||47***||4000MB||2.4 GHz|
|Snappy 8000||94***||8000MB||2.4 GHz|
|Dedicated Basic||47||4000MB||2.3 GHz|
|Dedicated Standard||47||4000MB||2.5 GHz|
|Dedicated Dedicated Elite||94||8000MB||2.5 GHz|
|Dedicated Dedicated Pro||188||16000MB||3.3 GHz|
- *: HostGator recommendations are based on documented vanilla Minecraft Server Requirements, and HostGator in no way guarantees any level of performance. Performance may vary significantly depending on the number of players, server modifications, actions performed by players on a server. VPS users may potentially experience outages or suspensions for high CPU use to preserve the health and reliability of the server.
- **: This column represents the maximum number of players using a vanilla Minecraft server per server type based on recommended RAM and bandwidth requirements.
- ***: Disk I/O may negatively impact performance on VPS containers with greater than 40 simultaneous users.
Step 2: Buy a Minecraft Server
The links below will help you purchase a HostGator hosting service for hosting a Minecraft server:
Step 3: Setup Minecraft on Your Server
To install the default or vanilla Minecraft server:
- Open an SSH client and login.
- Create the folder that you want to install Minecraft to:
mkdir minecraftThis can be anywhere in the file structure, but it is usually best to put it in the home directory.
- Change to the minecraft directory:
- It is recommended at this point you verify you have Java installed, to do this run the following command:
- Download the Minecraft JAR file:
curl -O https://s3.amazonaws.com/MinecraftDownload/launcher/minecraft_server.jar
- To run Minecraft when you are not connected to your server, you need Screen installed:
sudo yum install screen
- To start the Minecraft Server, run the following command from the folder the file was downloaded to:
screen java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
- You can exit SSH or use ctrl+a+d to exit the Screen session. This will not close it down.
- To resume your 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.
- To terminate the Minecraft server:
- Resume the screen session.
- Press Ctrl + a.
- Press Shift + a.
- Confirm termination of the screen session.