How to Set Up a Minecraft Server: Paper Installation Guide
Complete Minecraft server setup guide on REXE VDS: Paper/Spigot installation, Java configuration, plugin management, and performance optimization for stable gameplay.
Table of Contents
Introduction
Minecraft is one of the most popular games in the world, and running your own server gives you full control over the gameplay experience. This guide covers setting up a Minecraft Java Edition server using Paper (recommended) on your REXE VDS.
Recommended specs: 4 CPU cores, 8GB RAM for 20-30 players. Scale up for more players or heavy modpacks.
Step 1: Install Java
Minecraft requires Java 17 or newer:
# Ubuntu/Debian
sudo apt update
sudo apt install -y openjdk-21-jre-headless
# Verify installation
java -version
Step 2: Create Server Directory
sudo adduser minecraft --disabled-password --gecos ""
sudo su - minecraft
mkdir -p ~/server
cd ~/server
Step 3: Download Paper
Paper is the recommended server software — it's a high-performance fork of Spigot:
# Download latest Paper build
wget -O paper.jar https://api.papermc.io/v2/projects/paper/versions/1.21.4/builds/latest/downloads/paper-1.21.4-latest.jar
Step 4: First Run and EULA
java -Xms2G -Xmx6G -jar paper.jar --nogui
The server will stop and create an eula.txt file. Accept the EULA:
sed -i 's/eula=false/eula=true/' eula.txt
Step 5: Server Configuration
Edit server.properties:
server-port=25565
max-players=30
view-distance=10
simulation-distance=8
network-compression-threshold=256
online-mode=true
Step 6: JVM Optimization
Create a start script with optimized JVM flags:
#!/bin/bash
java -Xms4G -Xmx6G \
-XX:+UseG1GC \
-XX:+ParallelRefProcEnabled \
-XX:MaxGCPauseMillis=200 \
-XX:+UnlockExperimentalVMOptions \
-XX:+DisableExplicitGC \
-XX:G1NewSizePercent=30 \
-XX:G1MaxNewSizePercent=40 \
-XX:G1HeapRegionSize=8M \
-jar paper.jar --nogui
Set -Xms and -Xmx to the same value to prevent JVM from constantly resizing the heap.
Step 7: Path Panel Firewall
Protocol: TCP
Destination Port: 25565
Filter: Minecraft Java Edition
Comment: "Minecraft server"
Step 8: Running as a Service
[Unit]
Description=Minecraft Server
After=network.target
[Service]
Type=simple
User=minecraft
WorkingDirectory=/home/minecraft/server
ExecStart=/home/minecraft/server/start.sh
Restart=on-failure
RestartSec=10
[Install]
WantedBy=multi-user.target
Plugin Management
Place plugin .jar files in the plugins/ directory:
cd ~/server/plugins/
wget PLUGIN_DOWNLOAD_URL
Restart the server to load new plugins.
Performance Tips
- Use Paper instead of vanilla or Spigot for best performance
- Reduce
view-distanceandsimulation-distancefor better TPS - Pre-generate world chunks with Chunky plugin
- Monitor TPS with
/tpscommand (20 TPS = perfect) - Use Spark plugin for detailed performance profiling
Avoid allocating more RAM than needed. Excessive heap size can cause longer garbage collection pauses.
Related Articles
How to Set Up a FiveM Server: Step-by-Step Guide
Complete FiveM server setup guide on REXE VDS: installation, txAdmin configuration, port settings, and performance optimization tips for GTA V roleplay servers.
How to Set Up a CS2 Dedicated Server: Complete Guide
Complete CS2 dedicated server setup guide on REXE VDS: SteamCMD installation, GSLT token, server configuration, game modes, and DDoS protection with Path Panel.
How to Set Up a Rust Server: Oxide Plugin Guide
Complete Rust dedicated server setup guide on REXE VDS: SteamCMD installation, Oxide/uMod plugin system, server configuration, performance tuning, and wipe management.