Raspberry Pi builds a Minecraft Server

Source: Internet
Author: User
1. Install JDK

After reading a lot of online tutorials, I thought about it myself. In fact, it is very simple. wget does not need to be troublesome. It can be done with APT-Get.

Sudo apt-Get install oracle-java8-jdk

Environment variables have been automatically configured after installation. You can test the environment variables using the following statement:

Java-version

Ii. Install the Minecraft Server

Recently, spigotmc, bukkit, and other servers are no longer available for download due to DMCA issues. Therefore, unless you can find the previous server, you can only use the official server.

However, this issue does not affect this tutorial because their startup commands are the same. Official Server Download Page

I put the spigotmc server under the/home/PI/mcserver directory, enter the directory, and then execute:

Sudo Java-xms256m-xmx496m-jar spigot. Jar nogui

You can start the server. The speed is slow. Please wait!

However, if you are not a genuine user and cannot access the server, we start the server to make it automatically generate a configuration file for modification.

Now, enter stop in the server to stop the server.

Edit the server. properties file in the same directory on the server.

Online-mode = true

This line is changed

Online-mode = false

In this case, you can access the server normally. But don't worry. We can install some required plug-ins first.

For example, reduce the nospawnchunks plug-in for loading useless blocks.

Go to the Plugins directory under the server directory. Then:

Sudo wget -- no-check-certificate http://dev.bukkit.org/media/files/586/974/NoSpawnChunks.jar

You can use the same plug-ins. You only need to put the JAR file in the Plugins directory!

Okay, let's re-run the command to open the server. Remember?

Sudo Java-xms256m-xmx496m-jar spigot. Jar nogui

That's it! Have fun!

 

Linux instruction class

Liunx Delete directory

Rm-r directory name

 

Raspberry Pi builds a Minecraft Server

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: info-contact@alibabacloud.com 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.