# 前台运行一个程序
[root@localhost ~]# python spider.py
# 后台运行一个程序
[root@localhost ~]# python spider.py &
# 查看后台运行的进程
[root@localhost ~]# jobs -l
#[1]+ 14135 Running python spider.py &
# 让后台运行的进程n到前台来:fg %n
[root@localhost ~]# fg %1
# 让前台运行的进程n到后台去:bg %n
[root@localhost ~]# bg %1
# 参考:http://www.xitongzhijia.net/xtjc/20150918/58113_all.html
https://blog.csdn.net/woodcorpse/article/details/79292346
https://www.cnblogs.com/huanghuanghui/p/9708350.html
https://www.cnblogs.com/zhming26/p/6089928.html
nohup 与 & 的区别:
https://blog.csdn.net/weixin_37490221/article/details/81539341