首页 > SSH 到 Llinode 服务器,跑一个 Python 程序,关闭 Iterm 2 后, Python 还在运行吗?

SSH 到 Llinode 服务器,跑一个 Python 程序,关闭 Iterm 2 后, Python 还在运行吗?

我自己在用python, flask做一个爬虫项目: http://www.codejob.me/

要在服务器运行爬虫,我sshLinode上后,运行python crawler.py,爬虫还要走一断时间。

请问我这时关闭sshpython进程还在进行吗?

如果已经停了,怎么确保它继续运行?

刚刚学编程,请见谅。


可使用:
1.nohup python crawler.py &

2.工具 screen或者tmux


那个东西叫tmux或者mosh之类吧


使用 nohup 和 &, nohup 使你的进程在关闭ssh后继续运行, & 使你的进程在后台运行.

#nohup python crawler.py &
【热门文章】
【热门文章】