开启cron日志sudovim/etc/rsyslog.d/50-default.conf去掉下面一行的注释cron.*/var/log/cron.log添加执行脚本每隔两分钟执行docker中脚本,并且把输出写入/var/log/result.log日志文件*/2****dockerexecdnmp_php56_1sh-c"www/wuu.sh">>/var/log/result.log2>&1重启服务sudoservicersyslogrestartsudoservicecronrestart