There are many ways how to set up a Minecraft server. My favourite is this:
- Set up a Linux box
- Use PaperMC server
- Enable RCON to communicate with the server (because it’s running in the background)
- Run server as a background process (daemon)
- Use a scheduled maintenance script for backup and other important jobs