使用任务计划时出错

时间:2016-10-06 16:00:29

标签: php laravel taskscheduler

使用laravel任务调度时,收到以下错误消息:

[ErrorException] escapeshellarg() has been disabled for security reasons

问题是什么?我该如何解决?另外,我还没有访问php.ini文件。

这是我的代码:
在内核中:

    protected function schedule(Schedule $schedule)
    {
        $schedule->call(function(){
            echo "SSS";
        })->everyMinute();
    }

直接管理的Cron工作:

* * * * * php /path/to/artisan schedule:run >> /path/to/test11.txt

test11.txt内容:

[ErrorException] escapeshellarg() has been disabled for security reasons

0 个答案:

没有答案
相关问题