Last active
August 29, 2015 14:27
-
-
Save akulubala/ab4e6eff242fe4da5395 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mac下使用vim可能会报错,所以这么使用 | |
env EDITOR=nano crontab -e | |
* * * * * /usr/local/bin/php /path/to/artisan schedule:run 1>> /dev/null 2>&1(需要指定PHP路径) | |
Ctrl+o 保存cron | |
Ctrl+x 退出nano | |
创建 crontab /var/www/cron/xxx.cron ->开始cron保存的位置 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment