VPS or Dedicated Hosting - Install a Minecraft Server
If you are using assistive technology and are unable to read any part of the HostMonster website, or otherwise have difficulties using the HostMonster website, please call 866-573-HOST and our customer service team will assist you.
Skip to main content

HostMonster Web Hosting Help

VPS or Dedicated Hosting - Install a Minecraft Server

This tutorial will help you install a Minecraft Server on an VPS or Dedicated server.

Host your own Minecraft server on a HostMonster VPS Hosting service, sign up here to get started today.

You will need to make sure that you have Sudo Access enabled. If you have not enabled sudo access please see Enabling Sudo Access to learn how to do so. You will also need to have Java 1.7 or newer installed. If you have not installed Jave on your account, please see Installing Java.

Install Minecraft

To install the default or vanilla Minecraft server, please do the following:

  1. Open an SSH client and login.
  2. Create the folder that you want to install Minecraft to.
    mkdir minecraft

    This can be anywhere in the file structure, but it is usually best to put it in the home directory.

  3. Change to the minecraft directory.
    cd minecraft
  4. It is recommended at this point you verfiy you have Java installed, to do this run the following command:
    java -version
    If java is not installed please see Installing Java to see how to install Java.
  5. Download the Minecraft JAR file.
    curl -O https://s3.amazonaws.com/MinecraftDownload/launcher/minecraft_server.jar

    It is recommended that you check MineCraft's download page for the latest version.

  6. Now open the port that you will have Minecraft listen on.
    sudo iptables -A INPUT -p tcp -m tcp --dport 25565 -j ACCEPT
    sudo service iptables save
    sudo service iptables restart

    If you would like to use a port other than the default 25565, you will need to run the server once to create server.properties file needed to change the port.

  7. To run Minecraft when you are not connected to your server, you need Screen installed
    sudo yum install screen
  8. Start the Minecraft Server.
    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 open the 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.

For more information on Minecraft visit Minecraft.net.

Knowledgebase Article 164,484 views bookmark tags: Minecraft dedicated vps


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

How to install Java in a dedicated server.
Knowledgebase Article 176,493 views tags: dedicated install java server yum

This is a tutorial on how to install Git onto the server.
Knowledgebase Article 200,401 views tags: dedicated git install server yum

If you need to transfer or restore a cPanel account for your VPS or Dedicated server, there is a tool within the WHM panel to perform these tasks. This article is about transferring or restoring from another server or restoring after a re-image.
Knowledgebase Article 88,895 views tags: backup cpanel dedicated hosting restore server transfer vps

Related Help Content

How to manage the SSL used for cPanel login through the WHM
Knowledgebase Article 221,843 views tags: cpanel dedicated install login manage server ssl

This article will explain how-to enable FTP on a newly provisioned VPS or Dedicated cPanel server. Since FTP is an unsecured connection point to the server, cPanel has it disabled by default in version 11.86 or prior.
Knowledgebase Article 46,440 views tags: dedicated file ftp root server transfer vps

VPS and Dedicated servers come with all applications necessary to run a standard web and email server. The applications that come with the VPS and Dedicated servers are generally supported as-is by our support technicians.

How to install ClamAV to help with virus protection.
Knowledgebase Article 170,791 views tags: antivirus clamav cpanel dedicated plugin server whm

VPS and Dedicated customers with servers running the CentOS 6 operating system will not be able to upgrade cPanel past version 86. The cPanel team will still support CentOS 6 with cPanel 86 until March 31st, 2021.
Knowledgebase Article 115,900 views tags: centos cpanel dedicated hosting private server upgrade virtual vps

To help with installing an SSL certificate for an account on a dedicated server through the WHM
Knowledgebase Article 260,619 views tags: assign dedicated server ssl whm

How to setup name servers for multiple cPanel accounts.
Knowledgebase Article 281,106 views tags: accounts custom dedicated multi multiple nameservers server servers

How to assign a dedicated IP to a domain on a dedicated server.
Knowledgebase Article 214,633 views tags: dedicated ip

This site utilizes JavaScript to function correctly. Looks like it's disabled on your browser. Please enable it for your best experience.

For instructions on enabling JavaScript, click here