Thankfully, updating your Minecraft server is easy as pie.
Even better is the fact that you can easily do it no matter which system the server uses, be it Windows, Linux, or OS X.
Without further ado, here’s how to update Minecraft server!
How to Update Minecraft Server Using Windows
- First, open your Minecraft server folder, which contains all the files related to your server.
- Next, you should make a copy of your server’s configuration files so that you can restore them after the update. These files are:
- Make a copy of the “World” folder. It will also be restored once the update is complete.
- If you use a script, make a copy of its files.
- Once you’ve taken care of the backup process, delete everything in the server’s folder.
- Head over to the Minecraft Server Download page and download the new version of the server. Download the EXE file if you’re using a Windows server and the JAR file if you’re using Linux or OS X.
- Rename the server file by removing the version number so that your old scripts remain compatible.
- Move the new server file to your Minecraft Server folder.
- Run the server file.
- Close the server as soon as the files finish installing.
- In the folder, you’ll find a file named eula.txt. Open it.
- Find the eula=false line and change it to eula=true. Save the file and exit the text editor.
- Congratulations! The update is now complete! You may start your server now.
- How to Update Minecraft Server Using Linux’s Command Line
You’ll pretty much follow the same steps specified above but using the command line instead of the visual interface of Windows.
Here’s how to update your game server using the command line:
- Open the Minecraft server folder using the following command: cd /Minecraft
- Create a backup of the “World” folder using the following command: sudo cp -r world world-backup
- Create a copy of the current Minecraft server file using the following command: sudo cp minecraft_server.jar minecraft_server.jar-backup
- Head over to the Minecraft Server Download page and copy the link of the new version.
- Download the new version to your server using the following command: sudo wget [URL]
- Next, you need to stop the server. To do so, attach to the screen session using the command “screen -r” then press CTRL + C.
- Install the new server version using the following command: sudo mv minecraft_server.X.jar minecraft_server.jar. Replace X with the version’s number.
- Start a new screen session using the command: screen -r
- Finally, use the following command to restart your server: java -Xms1G -Xmx1G -jar minecraft_server.jar nogui
- You can use CTRL + A, CTRL + D to detach from this session.