Skip to content
CryptoDedicated
Menu

How do I host a Minecraft server on a dedicated server?

How to host a Minecraft server on a Linux dedicated server: the right Java version, a service that restarts by itself, memory settings and backups.

Updated , by the CryptoDedicated team, 5 min read

Quick answer

How do I host a Minecraft server on a dedicated server?

Install Java 25, download server.jar from minecraft.net into a folder owned by a minecraft user, run it once, set eula=true, then start it under systemd with -Xms and -Xmx memory flags and open TCP port 25565. A CryptoDedicated Ryzen 9700X with 64 GB of DDR5 runs several worlds for $154.54 per 30 days, paid in Monero or USDT.

In brief
  • Java version: Minecraft 1.20.5 and later needs Java 21, and 26.1 and later needs Java 25, per the Minecraft Wiki.
  • Clock speed beats core count: the main game loop runs on one thread, so a fast Zen 5 core matters most.
  • Memory: set -Xms and -Xmx to the same value, a few gigabytes per world; leave the rest to the system cache.
  • One port per world: 25565 for the first, 25566 and up for the next, each opened in the firewall.
  • Backups: copy the world folder while saving is paused with save-off and save-all.

How much memory should each Minecraft world get?

Memory depends on players, view distance and mods far more than on the server software. These ranges are starting points to adjust with the in-game performance tools.

Starting memory per Minecraft Java world and the CryptoDedicated machine that holds several of them
World typeTypical -XmxWorlds on a Ryzen 9700X (64 GB)Worlds on a Ryzen 9950X (128 GB)
Vanilla, up to 10 players3 to 4 GBMany; the CPU limits firstMany
Paper with plugins, 20 to 50 players6 to 8 GB4 to 610 or more
Modded pack (Forge or NeoForge)8 to 12 GB3 to 58 to 12
Proxy network (Velocity plus backends)1 GB proxy, 4 to 8 GB per backendOne small networkOne large network

How do I install the server, step by step?

  1. Install Java 25

    Add the Adoptium repository and install temurin-25-jdk, then check java -version.

  2. Create a service user

    Add a system user named minecraft with its home in /opt/minecraft, so the game never runs as root.

  3. Download server.jar

    Copy the link of the current server jar from minecraft.net/download/server and fetch it into /opt/minecraft/survival.

  4. Accept the EULA

    Run the jar once; it stops and writes eula.txt. Change eula=false to eula=true after reading the Minecraft EULA.

  5. Set the basics in server.properties

    Choose server-port, max-players, view-distance and white-list=true for a private server.

  6. Run it under systemd

    A unit with Restart=on-failure starts the world at boot and brings it back after a crash.

  7. Open the port

    Allow TCP 25565 in nftables, then connect from the game with the server's IP address.

Java 25 from Adoptium, server folder and systemd unit (Debian 13 or Ubuntu 24.04)
apt install -y wget apt-transport-https gpg
wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public | gpg --dearmor | tee /etc/apt/trusted.gpg.d/adoptium.gpg > /dev/null
echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list
apt update && apt install -y temurin-25-jdk
java -version

useradd --system --create-home --home-dir /opt/minecraft minecraft
sudo -u minecraft mkdir -p /opt/minecraft/survival && cd /opt/minecraft/survival
sudo -u minecraft wget -O server.jar 'URL_COPIED_FROM_MINECRAFT_NET'
sudo -u minecraft java -jar server.jar --nogui        # creates eula.txt, then stops
sudo -u minecraft sed -i 's/eula=false/eula=true/' eula.txt

cat > /etc/systemd/system/[email protected] <<'EOF'
[Unit]
Description=Minecraft world %i
After=network-online.target

[Service]
User=minecraft
WorkingDirectory=/opt/minecraft/%i
ExecStart=/usr/bin/java -Xms6G -Xmx6G -jar server.jar --nogui
Restart=on-failure
SuccessExitStatus=0 1 143

[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload && systemctl enable --now minecraft@survival
journalctl -u minecraft@survival -f

Why does a Minecraft server want a high-clock CPU?

Each world simulates its ticks on one main thread, 20 times a second, so the speed of a single core decides when lag starts. Extra cores help with chunk generation, networking and running several worlds side by side, not with one crowded world.

That is why the Ryzen 9700X, built on Zen 5 in 2024, is the usual game pick, and the Ryzen 9950X when one box hosts a whole network. Compare their single-thread results yourself with the benchmark guide. Machine choices for other games are on the game server hosting page.

Should I run vanilla, Paper or a modded server?

Vanilla for a pure experience, Paper for plugins and better performance, a modded loader only when the pack requires it.

  • Vanilla: the jar from minecraft.net, exactly as Mojang ships it.
  • Paper: a high-performance fork with a plugin API; download from papermc.io and run it the same way.
  • Fabric, Forge or NeoForge: needed for mod packs; follow the installer of the pack, which writes its own start script.

The systemd unit above runs any of them; change the ExecStart line to the jar or script the loader created. Multiple worlds become minecraft@creative, minecraft@modded and so on, each in its own folder.

How do I back up the worlds without corrupting them?

Pause saving, flush the world to disk, copy it, then resume. The server console accepts save-off and save-all flush; a tool such as mcrcon sends them over RCON from a script. After the copy, save-on restores normal saving.

Copy the folder with restic to storage outside the machine, as described in how to back up a dedicated server with restic. According to CryptoDedicated's survey of 30 October 2026, the median entry-level dedicated server cost $245.00 a month across 17 crypto-friendly sellers; a world backup costs little next to that.

Frequently asked questions

Can Bedrock Edition players join?

Not a Java server directly. Run the Bedrock Dedicated Server from minecraft.net on UDP 19132, or add the Geyser plugin to a Paper server.

Can a Windows Minecraft server run on CryptoDedicated?

No. Only Linux systems are offered. The Java server runs the same on Linux, usually with less memory overhead.

Does the server need DDoS protection?

Large public servers attract floods. CryptoDedicated sells no separate DDoS product; the datacenter's default filtering applies, so popular public networks often add a filtering proxy service.

How do I update the server?

Stop the service, back up the world, replace server.jar with the new version and start again. Check that the Java version still matches the release.

Verdict
  • CryptoDedicated is the better pick for a private or community Minecraft server paid in crypto: the Ryzen 9700X gives fast Zen 5 cores and 64 GB for $154.54.
  • Pick a managed game host if a web panel and one-click mod packs matter more than root access.
  • Java 25, a systemd template unit and nightly restic copies cover the whole setup.
Sources (4)
  1. Tutorial: Setting up a Java Edition server — Minecraft Wiki (read 2026-11-30)
  2. Minecraft server download — Mojang Studios (read 2026-11-30)
  3. Installation on Linux (Temurin) — Eclipse Adoptium (read 2026-11-30)
  4. Paper documentation — PaperMC (read 2026-11-30)

A Minecraft server on Zen 5 cores

Ryzen 9700X, 8 cores / 16 threads, 64 GB DDR5: $154.54 per 30 days of play, paid in XMR, BTC or USDT.

Read next

$154.54 Ryzen 9700X, per 30 days

Order