crontab

2018-09-06 03:12:54   linux

 

CentOS7

  1. 开启
  2. /bin/systemctl start crond.service
  3. 停止
  4. /bin/systemctl stop crond.service
  5. 重启
  6. /bin/systemctl restart crond.service
  7. 重载
  8. /bin/systemctl reload crond.service
  9. 状态
  10. /bin/systemctl status crond.service

linux 里面运行

  1. */1 * * * * /usr/local/bin/php /home/son/duanxin.php php 文件
  2. */1 * * * * /bin/sh crontab.sh sh 脚本