You need to detach the server process from your shell. Your server is a child process of the shell and the system terminates the shell's children when the shell exits.
One way to do this is is using nohup
and running the process in the background from the shell like this:
nohup /your/server/command &
nohup
becomes the child process and, as its name suggests, it will ignore the hangup (HUP) signal that is normally sent to a child process.
The &
runs the command in the background so you get a shell prompt back. When you exit the shell the service should still be running as an independent process.