install-crontab.sh 192 B

123456
  1. #!/usr/bin/env bash
  2. # 解决bash: service: command not found 错误
  3. yum list | grep initscripts && yum install initscripts -y
  4. # 安装和启动
  5. yum install crontabs -y && service crond start