- Install java, not many online.
- Download spigot https://getbukkit.org/download/spigot
- Execute java -jar spigot-1.12.2.jar
- Execution must be a failure, since eula.txt needs to be agreed.
- vim eula.txt then set eula=true
- Execute the jar package again
- If the execution is successful, Done! is displayed. At this time, you need to delete the process and configure it.
- jps -l to see which PID, then use kill -9 [PID]
- vim server.propertis
- Firewall allows port 25565
- firewall-cmd --zone=public --add-port=25565/tcp --permanent
- firewall-cmd --reload
- Let the java process execute in the background, shell script
#!/bin/sh
java -Xmx1G -jar spigot-1.12.2.jar &
- start sh start.sh