定时任务管理系统

2018-12-05  本文已影响30人  诺之林

目录

cronsun

mongo: 27017 etcd: 2379

cd ~/Downloads/cronsun-v0.3.5

# 任务节点
./cronnode -conf conf/base.json

# 管理节点
./cronweb -conf conf/base.json

curl http://127.0.0.1:7079/ui/

如果后台运行程序 可以使用nodupSupervisor

nohup sudo ./cronnode -conf conf/base.json >> /tmp/cronsun-node.log 2>&1 &

nohup sudo ./cronweb -conf conf/base.json >> /tmp/cronsun-web.log 2>&1 &

jobs -l
# [1]  - 97669 running    nohup sudo ./cronnode -conf conf/base.json >> /tmp/cronsun-node.log 2>&1
# [2]  + 97680 running    nohup sudo ./cronweb -conf conf/base.json >> /tmp/cronsun-web.log 2>&1
任务名称
cronsun-test

任务脚本
touch /tmp/cronsun-test

用户
root

定时器
0 50,51 10 * * *
server {
    listen 80;
    server_name cronsun.com;

    location / {
        proxy_pass http://localhost:7079/;
    }
}

Alternatives

Cronicle

Open Source, Star较少

curl -s https://raw.githubusercontent.com/jhuckaby/Cronicle/master/bin/install.js | sudo node

vim /opt/cronicle/conf/config.json
# "web_socket_use_hostnames": true,

sudo /opt/cronicle/bin/control.sh setup

sudo /opt/cronicle/bin/control.sh start

curl http://localhost:3012/

# Scheduled Event
/usr/local/bin/mysqldump -uroot -p123456 --databases db1 > /tmp/db1.sql

Just installed Cronicle with Node v8 LTS

Airflow

Open Source, But Heavyweight Solution

gocron

Open Source, 国人开发

docker run --name gocron -p 5920:5920 -d ouqg/gocron

curl http://localhost:5920/

Cronitor

Commerce

Cronhub

Commerce

参考

上一篇下一篇

猜你喜欢

热点阅读