Prerequisites
- Java 21+ installed
- A valid SunBot license key. See Get your license key.
1. Upload required files
Transfer the following files to your VPS:server.jar(SunBot server file)license.txt(contains your license key)
scp or an FTP client like FileZilla. Example using scp:
2. Start the SunBot server
Navigate to the directory containingserver.jar and license.txt, then run:
- Replace
25595with the desired port number. - Make sure the port is open in your firewall settings.
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 NginxCTRL + X, then Y, then Enter).
Enable the configuration and restart Nginx
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, usescreen or tmux:
- screen
- tmux
CTRL + A, then D to detach. To resume: