Centos Crontab查看状态和开启

# 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 >> /tmp/dexin_git.log 2>&1

猜你喜欢

转载自www.cnblogs.com/jiqing9006/p/9660615.html