1

  1. $ yum install crontabs

    $ systemctl enable crond

    $ systemctl start crond

  2. vim /etc/crontab

    在配置中添加规则

    59 0 * * * root /usr/bin/sarg

    0 12 * * * root /usr/bin/sarg

    0 18 * * * root /user/bin/sarg

  3. $ crontab /etc/crontab
    

  4. $ crontab -l
    

    .. raw:: html
    

    </p>