Skip to main content

Prerequisites

Step 1: Upload required files

Transfer the following files to your VPS:
  • server.jar (SunGuard server file)
  • license.txt (contains your license key)
You can use scp or an FTP client like FileZilla. Example using scp:

Step 2: Start the SunGuard server

Navigate to the directory containing server.jar and license.txt, then run:
Replace 25595 with your desired port, and make sure the port is open in your firewall. If Java 21+ is not installed, you can install it with:

Step 3: Verify local access

Check that the server is running correctly:

Step 4: Expose to the internet with Nginx (optional)

Install Nginx:
Create a new config file:
Paste the following:
Enable the site and restart Nginx:
SunGuard is now available at http://yourdomain.com.

Step 5: Run on port 80 directly (alternative)

If you’re not using Nginx:
Port 80 must be free and not used by other services like Nginx or Apache.

Step 6: Configure the firewall (if needed)

Step 7: Keep SunGuard running after you disconnect

Detach with CTRL + A, then D. Resume with:
🎉 SunGuard is now running on your VPS. You can manage it manually or configure a systemd service for auto-start. If you’d rather not manage a server, consider SunGuard Managed Hosting.