1、打开crontab任务 crontab -e 2、设置脚本的启动时间 @reboot ( sleep 60 ; sh \path\demo.sh ) 设置脚本在启动后的60s启动 \path\demo.sh 就是脚本的存放地址