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