Giter Site home page Giter Site logo

netgen-parser's Introduction

安装步骤:
1,安装依赖软件包。
    npm install -d
2,修改配置文件,将config/config.js-dist重新命名为config/config.js,并修改相应配置项。

配置说明:
exports.config = {
  //定期轮询队列的时间间隔,单位:毫秒
  "interval": 1000,

  //子进程数量
  "worker_number": 5,

  //数据库信息
  "mysql": {
    "host": "127.0.0.1",
    "port": 3306,
    "user": "root",
    "pass": "",
    "database": "stock_radar"
  },

  //队列地址
  "queue": "http://127.0.0.1:3000/queue",

  //php路径
  "php": "/usr/local/php/bin/php",

  //是否开启调试信息输出
  "debug": true,

  //请求数据库的异步等待的超时时长
  "query_timeout":10,

  //子进程的内存限制,超过后会关闭并重启子进程
  "memory_limit": 60,

  "max_buffer":2,

  //tidy处理的策略设置,默认是default
  "tidy_strategy":{
    "szse.bulllist":"original"
  }
}

3,启动程序。
    node main.js

netgen-parser's People

Contributors

cobin avatar nkchwfree avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

netgen-inc

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.