推荐环境配置(Mac/Linux)

  1. sudo vim ~/.bash_profile
  2. export GOPATH="/go"
  3. export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
  4. export GO111MODULE=on
  5. export GOPROXY=https://goproxy.io
  6. source ~/.bash_profile

安装

  1. go get -u github.com/qit-team/snow/tool/snow
  2. cd $GOPATH/src
  3. snow new snow-demo

编译

  1. cd snow-demo
  2. sh build/shell/build.sh

启动

  1. 1. build/bin/snow -a api #启动Api服务
  2. 2. build/bin/snow -a cron #启动Cron定时任务服务
  3. 3. build/bin/snow -a job #启动队列调度服务
  4. 4. build/bin/snow -a command -m test #执行名称为test的脚本任务