beginner level: jupyter notebook --allow-root > jupyter.log 2>&1 &
Advanced version: nohup jupyter notebook --allow-root > jupyter.log 2>&1 &
Explanation: 1. & let the command run in the background, and write to the standard output in jupyter.log
nohup represents no hang up, just do not hang, so after this command is executed even if the terminal exit, it will not stop running.
2. terminate the process
Article 2 of the implementation of the above commands can be found in the terminal reopened after closing, with jobs can not find jupyter this process, so use ps -a, can show pid this process.
The kill -9 pid to terminate the process