今天使用linux crontab定时任务时,可能由于配置不妥,任务多执行一次,如下是我程序的日志记录(执行了两次,我设置的是每分钟执行1次) 解决如下
crontab,service cron restart
cron
ps -A | grep cron