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.
Complete Minecraft server setup guide on REXE VDS: Paper/Spigot installation, Java configuration, plugin management, and performance optimization for stable gameplay.
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.
Minecraft requires Java 17 or newer:
# Ubuntu/Debian
sudo apt update
sudo apt install -y openjdk-21-jre-headless
# Verify installation
java -version
sudo adduser minecraft --disabled-password --gecos ""
sudo su - minecraft
mkdir -p ~/server
cd ~/server
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
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
Edit server.properties:
server-port=25565
max-players=30
view-distance=10
simulation-distance=8
network-compression-threshold=256
online-mode=true
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.
Protocol: TCP
Destination Port: 25565
Filter: Minecraft Java Edition
Comment: "Minecraft server"
[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
Place plugin .jar files in the plugins/ directory:
cd ~/server/plugins/
wget PLUGIN_DOWNLOAD_URL
Restart the server to load new plugins.
view-distance and simulation-distance for better TPS/tps command (20 TPS = perfect)Avoid allocating more RAM than needed. Excessive heap size can cause longer garbage collection pauses.
Paper is recommended for the best performance. It's a fork of Spigot with significant optimizations and supports all Spigot/Bukkit plugins.
4-6GB for 20-30 players with light plugins. 8-12GB for 50+ players or heavy modpacks.
Download the plugin .jar file and place it in the plugins/ directory of your server. Restart the server to load the plugin. Make sure the plugin is compatible with your Paper version.
Lower view-distance and simulation-distance in server.properties, use Aikar's JVM flags, and run /timings on to identify which plugin or world feature is causing lag.
Complete FiveM server setup guide on REXE VDS: installation, txAdmin configuration, port settings, and performance optimization tips for GTA V roleplay servers.
Complete CS2 dedicated server setup guide on REXE VDS: SteamCMD installation, GSLT token, server configuration, game modes, and DDoS protection with Path Panel.
Complete Rust dedicated server setup guide on REXE VDS: SteamCMD installation, Oxide/uMod plugin system, server configuration, performance tuning, and wipe management.