How to start keycloak automatically on server reboot

You can turn it to a service, as @claudioweiler mentioned (init.d or systemd).
If it’s systemd, check out this site:

Just add a service configuration to the /etc/systemd/system

Then use systemctl enable on your newly created service to start it on every reboot.

Check this out: