-
Notifications
You must be signed in to change notification settings - Fork 60
install
Tinson Ho edited this page Aug 2, 2019
·
19 revisions
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的脚本任务