我正在尝试在我的 OVH 中运行一个 cron,但它不接受命令:
php artisan schedule:run 1>> /dev/null 2>&1
发生错误:
它说:
The characters for the records are letters , numbers, and characters -_./ Moreover , it is forbidden to access parent folders
最佳答案
使用 Laravel 文档中的示例以及您的工作目录的完整路径:
* * * * * php /path/to/artisan schedule:run >> /dev/null 2>&1
关于php - Laravel 5.1 cron 在 OVH 中不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35716270/