加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

php – Laravel 5.1 cron在OVH中不起作用

发布时间:2020-12-14 19:37:13 所属栏目:大数据 来源:网络整理
导读:我试图在我的OVH中运行一个cron,但是它不接受命令: php artisan schedule:run 1 /dev/null 21 发生了错误 : 它说: The characters for the records are letters,numbers,and characters -_./ Moreover,it is forbidden to access parent folders 解决方法
我试图在我的OVH中运行一个cron,但是它不接受命令:

php artisan schedule:run 1>> /dev/null 2>&1

发生了错误 :

enter image description here

它说:

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

https://laravel.com/docs/master/scheduling

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读