For the complete documentation index, see llms.txt. This page is also available as Markdown.

VPS Setup

SunLicense Server Setup VPS Guide (Without Pterodactyl)

SunLicense VPS Setup Guide (Without Pterodactyl)

This guide will walk you through setting up SunLicense on a VPS without using Pterodactyl.

Prerequisites

Before starting, ensure your VPS meets the following requirements:

  • Java 21+ installed

  • A valid SunLicense license key

Installation Steps

1. Upload Required Files

Transfer the following files to your VPS:

  • server.jar (SunLicense server file)

  • license.txt (Contains your license key)

You can use scp or an FTP client like FileZilla to upload these files to your VPS.

Example using scp:

2. Start SunLicense Server

Navigate to the directory containing server.jar and license.txt, then execute the following command:

  • Replace 25595 with the desired port number.

  • Ensure the port is open in your firewall settings.

If Java 21+ is not installed, you can install it using:

3. Verify Local Access

Once the server starts, you can access SunLicense from the VPS itself:

Replace 25595 with your chosen port.

4. Expose to the Internet (Optional)

If you want to access SunLicense from an external network, you need to configure a reverse proxy using Nginx.

Install Nginx

Configure Nginx Proxy

Create a new Nginx configuration file:

Add the following content:

Save and exit (CTRL + X, then Y, then Enter).

Enable the Configuration

Restart Nginx:

Now, you can access SunLicense from http://yourdomain.com.

5. Running on Port 80 (Alternative)

If you don't want to use Nginx, you can run SunLicense directly on port 80:

Note: This works only if no other services (like Nginx or Apache) are using port 80.

6. Configure Firewall (If Required)

To allow external access, open the required ports:

7. Keeping SunLicense Running

To keep SunLicense running even after closing the terminal, use screen or tmux:

Using screen

Press CTRL + A, then D to detach. To resume, use:

Using tmux

Detach with CTRL + B, then D. Resume with:

Conclusion

SunLicense is now set up on your VPS without Pterodactyl. You can manage it manually or configure a systemd service for automatic startup. If you need a managed setup, consider SunLicense Managed Hosting.

For purchasing, visit: SunLicense on BuiltByBit.

Last updated