![]() WantedBy=multi-user.target Memory allocationīased on your Linux VPS Plan, you can edit the amount of memory the server needs to allocate for the Minecraft Server. SAVING ALL MAPS."5'ĮxecStop=/usr/bin/screen -p 0 -S mc-%i -X eval 'stuff "save-all"5'ĮxecStop=/usr/bin/screen -p 0 -S mc-%i -X eval 'stuff "stop"5' Start by creating a new named file with nano command : $ sudo nano /etc/systemd/system/ Īnd then paste the following content in the new file : ĮxecStart=/usr/bin/screen -DmS mc-%i /usr/bin/java -Xmx2G -jar minecraft_server.jar noguiĮxecStop=/usr/bin/screen -p 0 -S mc-%i -X eval 'stuff "say SERVER SHUTTING DOWN IN 5 SECONDS. $ sudo bash -c "echo eula=true > /opt/minecraft/survival/eula.txt"Īnd finally, we will need to give our minecraft user account ownership on the Minecraft Server survival directory : $ sudo chown -R minecraft /opt/minecraft/survival/ Create the Minecraft systemd startup script Once the download is completed, you will need to accept the EULA before being able to install Minecraft Server. Use the following command to download the file, replacing the link in this example with the current copied link : $ sudo wget -O /opt/minecraft/survival/minecraft_server.jar Right-click and select Copy link address on the line Download minecraft_server.X.XX.X.jar and run it with the following command:.Go on this page and locate the download link.Since Minecraft receives regular updates, we will share your the latest version file : Once the directory is created, we need to download the official Minecraft Server Java file with wget. Each server instance you will run need its own directory under the /opt/minecraft directory.įor this instance, let's call it survival and create the following directory : $ sudo mkdir /opt/minecraft/survival ![]() It is possible to run multiple instances of a Minecraft Server on a single Linux VPS. You can create a new account with the following command : $ sudo useradd -m -r -d /opt/minecraft minecraft Install Minecraft Server It is a good practice to let the Minecraft Server run under its own dedicated account, rather than using root user.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |