How do I run the jar package generated by spring boot?

for example, there is a server.jar, that I run like this:

java -jar server.jar &

this runs smoothly, but when you exit the Terminal terminal tool, the operation of server.jar stops.
how can I perfectly deploy jar packages that run spring boot generation?

Mar.16,2021

you can configure backend services using systemd or supervisor. You can refer to this article systemd

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b34cd7-e491.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b34cd7-e491.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?