在服务器上pyspider总是挂项目消失怎么办?

centos7
pyspider
1,用nohup pyspider all > pyspider.log 2>&1 &后台运行,偶尔会挂怎么办
2,并没有输出pyspider.log是什么原因。
3,重启pyspider后,之前写的项目消失怎么办。

小唯快跑啊
浏览 1008回答 2
2回答

温温酱

设置日志,并启用调试功能。Usage: pyspider [OPTIONS] COMMAND [ARGS]...  A powerful spider system in python. Options:   --logging-config TEXT    logging config file for built-in python logging                            module  [default: pyspider/pyspider/logging.conf]   --debug                  debug mode

暮色呼如

说明运行命令的用户没有当前目录的权限。我使用 nohup 的姿势是这样的:sudo -u username nohup
打开App,查看更多内容
随时随地看视频慕课网APP