How to install the Minecraft server on Linux

Source: Internet
Author: User

Minecraft is a popular independent sandbox game. It was first created by Swedish programmer Markus "Notch" Perssion and later developed and released by Mojang. This is a game about breaking and placing bricks. First, people build buildings to resist night monsters. As the game develops, players create interesting and imaginative things together.

Creating a minecraft server on Linux is very simple and straightforward. The Minecraft hosting server should have at least 2 gb ram memory. Once we log in, we should ensure that our package is up-to-date:

# Sudo apt-get update

The Minecraft server requires java support. To check whether Java has been installed, run the following command:

# Java-version

If Java has been installed, we will get the information of the current Java version. If Java is not installed, we will get an error message, such as "Command not found" or similar information. To install Java, run the following command:

# Sudo apt-get install default-jdk

We also need to install screen on the server. We will use it later to start the minecraft server. It will maintain the connection and can run even after the terminal is closed. To install screen, run the following command:

# Sudo apt-get install screen

After installing all dependencies, it is time to install the Minecraft server. Create a folder to save the Minecraft files:

# Mkdir minecraft

# Cd minecraft

# Wget-O minecraft_server.jar

Once the download is complete, we need to run it. We run it in screen, so that it will always run in the background. To create a screen and start the Minecraft server, we need to execute:

# Screen-S "Minecraft server"

# Java-Xmx1024M-Xms1024M-jar minecraft_server.jar nogui

We will get some output and status information, including the completion information. We can launch screen at will and call it at any time. To exit screen, press CTRL + A, and then click "d.

To re-call the screen, we first list all the screens and then call it with its specific ID:

# Screen-ls

# Screen-r <screen_id>

You can edit the main configuration file, which is located in ~ /Minecraft/server. properties, where you can modify all the settings. Now you have all set and installed Minecraft. Invite your friends to have fun!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.