标签:pyspider
pyspider 想删除项目,默认是组名改为delete后如果状态为stop状态,24小时后项目会被系统删除.
这样很困扰,直接正题修改删除的时间。
创建一个config.json
"delete-time":10 删除项目时间设置10秒{
  "scheduler":{
    "delete-time":10
},
  "webui": {
    "username": "adin",
    "password": "admin888",
    "need-auth": true
  }
}执行命令(注意这个执行这个命令需要在config.json目录下,不然pyspider -c /xxx/db.json --data-path /xxx/data xxx代表文件路径):
pyspider --config config.json
官网文档:http://docs.pyspider.org/en/latest/Command-Line/
本文出自 “joker” 博客,请务必保留此出处http://jokerbug.blog.51cto.com/12943231/1947100
标签:pyspider
原文地址:http://jokerbug.blog.51cto.com/12943231/1947100