1. 打开/etc/rsyslog.conf

  2. 去掉关于cron的注释

    image-20210414182308168

  3. 重启服务:/etc/init.d/rsyslog restart