How To Set Up A Minecraft Server On Linux

From Yoga Asanas
Jump to: navigation, search

Minecraft is a popular sandbox indie game. It was first created by Markus "Notch", an Swedish programmer, and later published by Mojang. It is a game that involves breaking and placing blocks. At first, people built structures to protect against nocturnal monsters, but as the game grew players worked together to create wonderful, imaginative things.



Setting up minecraft server on your Linux server is simple and straight forward task. Minecraft server should have at minimum 2GB RAM memory. After we log in, we need ensure that our repositories keep up-to dated.



Minecraft server requires java installed on the server. In order to check if we already have in installed, we will execute the following command:



If Java is installed we will receive information about the latest Java version. If Java is not installed, we will see an error such as "Command failed to find" or similar. If you need Java installed, please execute the following command.



We will also need to install screen onto our server. We will be using it later in order to start the minecraft server. It will keep the connection up and running even after closing the console. minecraft survival servers To install screen, you can use the following command:



After we have installed all prerequisites, it is time to install Minecraft server. To keep Minecraft files safe, we create a directory.



Once it has been downloaded, we must run it. We will run it inside screen, so it will keep running in background all the time. To create the screen and then start the Minecraft server we need to execute:



We will be able to see the status and output, as well a message indicating that it is "done". You can exit the screen and reattach it at any time. To exit the screen hit CTRL+A and then click the "d” key.



To re-attach the screen to your computer, first list all screens. Then, attach the one with the specific ID.



You can edit the main configuration file which will be located in ~/minecraft/server.properties and change all the settings from there. minecraft survival servers You're now all set and the Minecraft server is installed. Invite all your friends to play and have some fun!



Do you want to learn more about Zuul, a CI/CD project gating device? Download our white paper and get reading!