在ubuntu server上记录和查看cron日志

Wednesday, September 7, 2011

在ubuntu中cron好像没有记录日志

于是google了一把找到了这个帖子http://forum.ubuntu.org.cn/viewtopic.php?f=54&t=341898

如果安装过rsyslog (安装 apt-get install rsyslog), 修改它的配置文件( vim /etc/rsyslog.d/50-default.conf, 把cron那一行注释去掉), 然后重启rsyslog 和 cron 就可以记录log (/var/log/cron.log)了

This entry was tagged Linux, ubuntu and Cron

comments powered by Disqus

© 2009-2013 lxneng.com. All rights reserved. Powered by Pyramid

go to Top