Skip to main content

Prerequisites

1. Upload required files

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

2. Start the SunBot server

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

3. Verify local access

Once the server starts, check it from the VPS itself:

4. Expose to the internet (optional)

To access SunBot from an external network, configure a reverse proxy with Nginx. Install Nginx
Configure the Nginx proxy
Add the following content:
Save and exit (CTRL + X, then Y, then Enter). Enable the configuration and restart Nginx
SunBot is now available at http://yourdomain.com.

5. Run on port 80 (alternative)

If you don’t want to use Nginx, run SunBot directly on port 80:
This works only if no other services (like Nginx or Apache) are using port 80.

6. Configure the firewall (if required)

7. Keep SunBot running

To keep SunBot running after you close the terminal, use screen or tmux:
Press CTRL + A, then D to detach. To resume:

Conclusion

SunBot is now set up on your VPS. You can manage it manually or configure a systemd service for automatic startup. If you’d prefer a managed setup, consider SunBot Managed Hosting.