OpenSERP 介绍

改进自 https://github.com/karust/openserp , 优化了相关功能,支持驱动浏览器去采集内容,开源仓库地址: https://github.com/mnt-ltd/openserp

安装

1. 下载

访问: https://github.com/mnt-ltd/openserp/releases ,下载操作系统对应的程序。

2. 安装浏览器依赖

  1. sudo apt install chromium-browser

3. 启动

手动启动,验证是否无误。

  1. ./openserp serve --config config.yaml
  1. 守护进程

supervisor 守护进程配置示例

  1. [program:openserp]
  2. directory =/opt/apps/openserp
  3. command =/opt/apps/openserp/openserp serve --config config.yaml
  4. autostart = true
  5. autorestart=true
  6. redirect_stderr = true
  7. stdout_logfile_maxbytes=100MB
  8. stdout_logfile = /var/log/supervisor/openserp-stdout.log
  9. stderr_logfile = /var/log/supervisor/openserp-stderr.log
  10. stderr_logfile_maxbytes=100MB
  11. user=ecs-user