# service crond status crond is stopped # service crond start Starting crond # service crond status crond (pid 20962) is running... git 自动拉取,写入日志 # 自动拉取 * * * * * cd /home/wwwroot/default/dexin/dragon/ && /usr/local/git/bin/git pull origin dexin &…
1.查看事件是否开启 SHOW VARIABLES LIKE 'event_scheduler' 2.设置当前事件开启 SET GLOBAL event_scheduler = 1; 或 SET GLOBAL event_scheduler = ON; 3.设置事件在mysql启动时自动开启方法 1. 开启事件,通过动态参数修改:SET GLOBAL event_scheduler = ON; 2. 在my.cnf中添加event_scheduler=ON.(如果没有添加的话,mysql重启事件…