


It is advisable to run the Minecraft server as a different user and not the root user.As someone commented, I was using the default Raspberry Pi OS to build the server, but it doesn't easily support Java 16. This will run the Minecraft server in a screen session in the background. The default port for Minecraft is 25565: $ sudo iptables -I INPUT -p tcp -dport 25565 -j ACCEPTġ2) Now you can start your server by running the start script. Screen -A -m -d -S minecraftserver java -Xmx1024M -Xms1024M -jar /path/to/minecraft_server.1.8.1.jar noguiĭo not forget that you can edit the 1024M to account for how much RAM you want to provide to the Minecraft server.ġ0) Make the start script executable: $ chmod +x startserver.shġ1) If you are using IPTables firewall, do not forget to add the Minecraft server's port to the firewall to allow connections. $ touch startserver.shĮcho -e "Starting Minecraft Server in 3 seconds." This will also create the server.properties file as well as the whitelist.json, ops.json, and default banned-players.json.ħ) Once the set up is completed, close the server out by simultaneously pressing CTRL+C on your keyboard or typing stop into the console of the Minecraft server.Ĩ) Edit the server.properties and other configuration files to your liking.ĩ) Create a startup script.


$ java minecraft_server.*********.jarĥ) Accept the EULA agreement by editing the eula.txt file and changing the false to true on Line 3 of the eula.txt file.Ħ) Run the server a second time and let it generate some default terrain and spawn areas. The download page is located here: $ wget *****/minecraft_server.******.jarĤ) Run the server for the first time so that it creates the eula.txt. $ sudo yum install screen java -yģ) Download the latest version (or your desired version) of the Minecraft server. 1) Create your host machine and provision the setup with required RAM and CPU resources.Ģ) Once your server is updated and configured the way you like, there will be the need to install java and screen so that we can run the minecraft server.
