在 Ubuntu 中, 将 cron 的默认日志存放在 /var/log/cron
2012-08-03 18:03
393 查看
1,修改rsyslog文件:
将 rsyslog 文件中的 #cron.* 前的 # 删掉;
2,重启rsyslog服务:
3,重启cron服务:
4,查看日志文件:
其实,Ubuntu中,cron的日志是存在的:
By default the cron log in ubuntu is located at /var/log/syslog. Use the below command to check the cron entries in this file.
grep cron /var/log/syslog
只需执行:
/etc/rsyslog.d/50-default.conf
将 rsyslog 文件中的 #cron.* 前的 # 删掉;
2,重启rsyslog服务:
service rsyslog restart
3,重启cron服务:
service cron restart
4,查看日志文件:
tail -f /var/log/cron.log
其实,Ubuntu中,cron的日志是存在的:
By default the cron log in ubuntu is located at /var/log/syslog. Use the below command to check the cron entries in this file.
grep cron /var/log/syslog
只需执行:
grep cron /var/log/syslog
相关文章推荐
- ubuntu系统日志管理方以及var-log下各个日志文件的作用
- ubuntu/var/log/下各个日志文件
- Ubuntu系统日志配置 /var/log/messages
- ubuntu/var/log/下各个日志文件
- Ubuntu系统日志配置 /var/log/messages
- 发现/var/log下没有cron的日志怎么办?
- Ubuntu系统日志配置 /var/log/messages
- ubuntu /var/log/下各个日志文件描述及修复无message文件和debug文件
- ubuntu/var/log/下各个日志文件
- ubuntu/var/log/下各个日志文件
- ubuntu/var/log/下各个日志文件
- Ubuntu系统配置日志/var/log/message
- ubuntu/var/log/下各个日志文件
- ubuntu下修改crontab的日志文件,使之单独保存为cron.log文件
- ubuntu/var/log/下各个日志文件
- ubuntu/var/log/下各个日志文件
- ubuntu/var/log/下各个日志文件
- ubuntu/var/log/下各个日志文件
- Ubuntu系统日志配置 /var/log/messages
- ubuntu/var/log/下各个日志文件