Open kagxin opened 5 years ago
修改rsyslog文件
/etc/rsyslog.d/50-default.conf 将 rsyslog 文件中的 #cron.* 前的# 删掉
重启rsyslog服务
service rsyslog restart
重启cron服务
service cron restart
查看日志文件
tail -f /var/log/cron.log
$ crontab -e
$ crontab -r
$ service cron restart
1、设置环境变量,声明使用的编辑器
2、编写一个corn文件 ,examplecron
3、加载corn文件
4、查看加载过的配置
ref: https://linuxtools-rst.readthedocs.io/zh_CN/latest/tool/crontab.html