请参考:https://www.cnblogs.com/EasonJim/p/7819635.html

 

查看 crontab 是否启动

sudo launchctl list | grep cron

 

检查需要的文件

$ LaunchAgents ll /etc/crontab
ls: /etc/crontab: No such file or directory #表示没有这个文件,需要创建一个

 

创建文件

sudo touch /etc/crontab

 

编辑方式和其他Linux上是一样的

 

Mac系统下,启动,重启

sudo /usr/sbin/cron start
sudo /usr/sbin/cron restart
sudo /usr/sbin/cron stop

 

相关文章:

  • 2021-11-04
  • 2021-06-08
  • 2021-06-21
  • 2021-11-01
  • 2021-06-20
  • 2021-11-19
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-16
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案