Background process are associated with the terminal on which you are executing a command so when you execute a job in the background and logout from the session, your process i.e. terminal will get killed.
nohup is one such method to avoid it and output that would normally go to the terminal goes to a file called nohup.out if it has not already been redirected.
Syntax
$nohup <my-process> &
Note: By default, the standard output will be redirected to nohup.out file in the current directory. And the standard error will be redirected to stdout, thus it will also go to nohup.out.