How to Install Minecraft Game Server in Linux VPS?

This article will assist you to install Minecraft Server in your Linux VPS. Checkout our VPS plans to host Minecraft Game Server. To install Minecraft Server, you will need root access and Java 1.7 or newer version installed to your VPS. If you have not installed Java yet, refer following steps to install Java first.

  1. Connect to SSH with root user and type following command.
    sudo yum install java-1.7.0-openjdk 
  2. At the confirmation prompt, enter y then RETURN to continue with the installation.

  3. Now, you have successfully installed OpenJDK 7. To download and install latest versions of OpenJDK packages, refer OpenJDK.

Install Vanilla Minecraft Server

  1. Connect to SSH with root user.

  2. Type following command to create folder in which you want install Minecraft. Though you can create this folder anywhere in VPS file structure, it is recommended to create it under home directory.
    mkdir minecraft 
  3. Now, switch to minecraft directory.
    cd minecraft
  4. Now, verify that we have installed Java properly in previous steps, run following command.
    java -version 
  5. Once it is verified that Java has been successfully installed in VPS, download the Minecraft JAR file. Check MineCraft's download page to get the latest version of Minecraft Server.
    curl -O https://s3.amazonaws.com/MinecraftDownload/launcher/minecraft_server.jar
  6. Open the default Minecraft port 25565.
    sudo iptables -A INPUT -p tcp -m tcp --dport 25565 -j ACCEPT
    sudo service iptables save
    sudo service iptables restart 
  7. Install screen to run Minecraft Server when you are not connected to VPS.
    sudo yum install screen 
  8. Start the Minecraft Server.
     screen java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui 
    Now, you can exit from SSH or use ctrl+a+d to exit the Screen. While you exit from the screen, Minecraft wont get closed. You can type screen -r to open screen session again.

  • 154 Users Found This Useful

Was this answer helpful?

Related Articles

How to Manage Linux VPS (SSD and Traditional) from VPS Management Portal?

We offer SolusVM VPS management portal with SSD Linux VPS and Ttraditional Linux VPS plans....

How to Install SHOUTCast Radio Server on Linux VPS?

This tutorial will assist you to install SHOUTcast Distributed Network Audio Server (DNAS 2.0) in...

How to create users and groups in CentOS7?

Once the Linux system is configured, adding and removing users is one of the most basic tasks...

How to transfer cPanel accounts from Shared Hosting to VPS/Dedicated Server manually?

cPanel facilitates you to restore full cPanel account along with websites, email accounts, MySQL...

Do You Provide TUN/TAP On VPS Hosting?

Typically, TUN/TAP is used when you want to utilize VPN services from your VPS. Windows VPS...