Skip to content

Instantly share code, notes, and snippets.

@dsentker
Created February 12, 2019 16:07
Show Gist options
  • Save dsentker/84e9b5c2cae84660509f35ef93179d6d to your computer and use it in GitHub Desktop.
Save dsentker/84e9b5c2cae84660509f35ef93179d6d to your computer and use it in GitHub Desktop.
Ubuntu nohub Example for node server
# Start service in background
nohup node server.js &
# Now you can exit SSH console
# Later, search for the process to kill it
ps -C node # a process id is showd
kill 123 # use process id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment