command
module
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: May 13, 2017
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶

gocron - 定时任务web管理系统
项目简介
使用Go语言开发的定时任务集中调度和管理系统, 用于替代Linux-crontab 查看文档
功能特性
- 支持任务CURD
- crontab时间表达式,精确到秒
- 任务执行失败重试设置
- 任务超时设置
- 任务执行方式
- 调用本机系统命令
- 通过SSH执行远程命令
- 执行HTTP-GET请求
- 查看任务执行日志
- 任务执行结果通知, 支持邮件、Slack
截图

支持平台
Windows、Linux、Mac OS
环境要求
MySQL
下载
安装
二进制安装
- 解压压缩包
cd 解压目录
- 启动
- Windows:
gocron.exe web
- Linux、Mac OS:
./gocron web
- 浏览器访问 http://localhost:5920
源码安装
go语言版本1.7+
go get -d github.com/ouqiang/gocron
- 编译
go build
- 启动、访问方式同上
启动可选参数
- -p 端口, 指定端口, 默认5920
- -e 指定运行环境, dev|test|prod, dev模式下可查看更多日志信息, 默认prod
- -h 查看帮助
安全
- 使用
https访问保证数据传输安全, 可在web服务器如nginx中配置https,通过反向代理,访问内部的gocron
- 网站访问设置IP白名单
- SSH登录设置IP白名单
程序使用的组件
贡献
欢迎提交PR
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
|
|
|
|
|
|
modules
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.