Setting up JWTPlus is now easier than ever with our automated installation scripts. Whether you're using a Debian-based OS, an RPM-based OS, or Alpine Linux, these scripts will handle the installation, configure the database, and set up JWTPlus as a system service.
For Deb based OS: Execute the below script from root user which will kickstart the installation process.
curl -s https://jwtplus.com/scripts/deb.sh | bash
For RPM based OS: Execute the below script from root user which will kickstart the installation process.
curl -s https://jwtplus.com/scripts/rpm.sh | bash
For Alpine OS: Execute the below script from root user which will kickstart the installation process.
curl -s https://jwtplus.com/scripts/alpine.sh | bash
To ensure JWTPlus runs efficiently, you should add two CRON jobs that execute every minute:
Open the CRON editor:
crontab -e
Add the following lines at the end of the file:
* * * * * /opt/jwtplus/jwtplus clean
* * * * * /opt/jwtplus/jwtplus rotate
Save and exit.
This ensures that expired tokens are regularly removed, and JWTPlus automatically rotates keys when the time arises.
Once the installation is complete, you can retrieve important details:
/root/root-key.txt
/root/database.txt
/opt/jwtplus/jwtplus.yaml