Skip to content

install

Tinson Ho edited this page Aug 2, 2019 · 19 revisions

推荐环境配置(Mac/Linux)

sudo vim ~/.bash_profile
export GOPATH="/go"
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
export GO111MODULE=on
export GOPROXY=https://goproxy.io
source ~/.bash_profile

安装

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

编译

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

启动

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