官方文档
https://github.com/ouqiang/gocron#%E6%88%AA%E5%9B%BE
根据官方文档自己搭建
1、下载二进制文件包
gocron-v1.5.1-linux-amd64.tar.gz
解压
tar -zxvf gocron-v1.5.1-linux-amd64.tar.gz
cd gocron-linux-amd64
ll gocron-linux-amd64
-rwxr-xr-x 1 501 games 17690087 Jun 15 10:47 gocron
2、安装数据库
yum install mariadb mariabd-server
3、启动
systemctl start mariadb
systemctl enablet mariadb
./gocron web
4、配置
MariaDB [(none)]> create database gocron character set utf8 collate utf8_bin; 创建库gocron
grant all privileges on gocron.* to gocron@localhost identified by 'gocron';
flush privileges;
http://ip:5920
5、使用
配置信息
在gocron-linux-amd64/conf/