Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道是否可以告诉 cron 在几个小时内不执行任何 cron 作业?
正如 shannonman 所提到的,您可以停止服务并在需要时重新启动它。
$ sudo /etc/init.d/cron stop
$ sudo /etc/init.d/cron start
参考