1、本地启动客户端,默认接口是5920

2、本地启动服务端,默认接口是5921

3、打开客户端管理网址:http://localhost:5920
4、配置服务器数据库基本信息及管理员账号,点击安装

5、安装完毕后会跳转到登陆界面

6、登陆进来后会看到空的任务列表界面

7、添加任务节点
这里的每个定时任务都需要在一个任务节点下,因此想要添加一个定时任务需要先添加一个任务节点。
注意:这里的任务节点,相当于就是指定在哪台服务器上执行。上面说过,本地运行了服务端,端口号是5921

8、新建任务
特别注意:如果该主任务配置有多个子任务,配置:子任务1;子任务2;
那么执行顺序为:主任务--->子任务2---->子任务1,也就是说子任务的顺序是倒序执行的。
/bin/date >> /tmp/date.txt

gocron时间计划表达式配置:


9、任务执行列表

10、任务执行的日志


11、执行失败时收到的通知邮件内容

12、配置发信人邮箱和收件人信息

网友评论