您的位置: 首页 > IT文章 > linux 定时任务 linux 定时任务 分类: IT文章 • 2025-01-28 13:08:37 1.编辑配置文件 sudocrontab -e */1 * * * * python /home/hello.py >> /home/hello.log */1 * * * * date >> /home/hello.log 2.hello.py内容 print "hello" 3.保存,重启服务: /etc/init.d/cron restart 4.结果