当使用rsyslog发现没有日志写入到cron时,可通过外部使用strace进行日志查看在外部获取cron进程号 ps auxwww | grep cron查看该cron进程信息strace -s1500 -f -p 30127 相关查看trace中的功能man strace