Laravel - php artisan config:cache - [ReflectionException]类cache.store不存在

时间:2017-09-07 20:16:04

标签: php laravel

运行命令后

php artisan config:cache

它返回配置文件的内容加上

 [ReflectionException] Class cache.store does not exist

我的ip地址上的网页显示了这个

  

?php return [/ *   | ------------------------------------------------- ------------------------- |应用名称   | ------------------------------------------------- ------------------------- | |此值是应用程序的名称。使用此值   当|框架需要将应用程序的名称放在一个   通知或|申请所要求的任何其他地点或   它的包裹。 | /' name' => env(' APP_NAME',' Laravel'),/   | ------------------------------------------------- ------------------------- |应用环境   | ------------------------------------------------- ------------------------- | |此值确定"环境"你的申请是   目前|运行。这可能决定你喜欢配置的方式   各种各样的您的应用程序使用的服在你的" .env"中设置它   文件。 | /' env' =>环境(' APP_ENV','生产'),/   | ------------------------------------------------- ------------------------- |应用程序调试模式   | ------------------------------------------------- ------------------------- | |当您的应用程序处于调试模式时,详细的错误消息   与|堆栈跟踪将显示在其中发生的每个错误上   你的|应用。如果禁用,则会显示一个简单的通用错误页面。   | /' debug' => env(' APP_DEBUG',false),/   | ------------------------------------------------- ------------------------- |应用程序URL   | ------------------------------------------------- ------------------------- | |控制台使用此URL来正确生成URL   使用| Artisan命令行工具。您应该将其设置为root   的您的应用程序,以便在运行Artisan任务时使用它。 |    /' url' =>环境(' APP_URL',' http://159.203.5.249'),/ | ------------------ -------------------------------------------------- ------ |应用时区   | ------------------------------------------------- ------------------------- | |您可以在此处指定应用程序的默认时区,   哪个|将由PHP日期和日期时间函数使用。我们有   走了|提前并将此设置为合理的默认值   框。 | /' timezone' => ' America / Toronto',/   | ------------------------------------------------- ------------------------- |应用程序区域设置配置   | ------------------------------------------------- ------------------------- | |应用程序区域设置确定将使用的默认区域设置   用过|由翻译服务提供商。你可以自由设定   价值|到任何将由支持的语言环境   应用。 | /' locale' => ' en',/   | ------------------------------------------------- ------------------------- |应用程序后备区域设置   | ------------------------------------------------- ------------------------- | |回退区域设置确定当前使用的区域设置   一个|不可用。您可以更改值以对应任何值   的通过您的应用程序提供的语言文件夹。   | /' fallback_locale' => ' en',/   | ------------------------------------------------- ------------------------- |加密密钥   | ------------------------------------------------- ------------------------- | |该密钥由Illuminate加密服务使用,应该是   设置|随机,32个字符的字符串,否则这些加密   字符串|不安全。请在部署之前执行此操作   应用! | /' key' => env(' APP_KEY'),' cipher' => ' AES-256-CBC&#39 ;,   /   | ------------------------------------------------- ------------------------- |记录配置   | ------------------------------------------------- ------------------------- | |您可以在此处配置应用程序的日志设置。退房   的在这个盒子里,Laravel使用Monolog PHP日志库。这给了   |你可以使用各种强大的日志处理程序/格式化程序。 | |   可用设置:"单","每日","系统日志","错误日志" | /' log'   => env(' APP_LOG','单'),' log_level' => env(' APP_LOG_LEVEL',' debug'),/   | ------------------------------------------------- ------------------------- |自动加载的服务提供商   | ------------------------------------------------- ------------------------- | |此处列出的服务提供商将自动加载   |请求您的申请。随意添加自己的服务   到|此数组用于向应用程序授予扩展功能。   | /'提供商' => [/ * Laravel框架服务提供商...... /   照亮\验证\ AuthServiceProvider ::类,   照亮\广播\ BroadcastServiceProvider ::类,   照亮\公交车\ BusServiceProvider ::类,   照亮\缓存\ CacheServiceProvider ::类,   照亮\基金会\供应商\ ConsoleSupportServiceProvider ::类,   照亮\饼干\ CookieServiceProvider ::类,   照亮\数据库\ DatabaseServiceProvider ::类,   照亮\加密\ EncryptionServiceProvider ::类,   照亮\文件系统\ FilesystemServiceProvider ::类,   照亮\基金会\供应商\ FoundationServiceProvider ::类,   照亮\散列\ HashServiceProvider ::类,   照亮\邮件\ MailServiceProvider ::类,   照亮\通知\ NotificationServiceProvider ::类,   照亮\分页\ PaginationServiceProvider ::类,   照亮\管道\ PipelineServiceProvider ::类,   照亮\队列\ QueueServiceProvider ::类,   照亮\ Redis的\ RedisServiceProvider ::类,   照亮\验证\密码\ PasswordResetServiceProvider ::类,   照亮\会议\ SessionServiceProvider ::类,   照亮\翻译\ TranslationServiceProvider ::类,   照亮\确认\ ValidationServiceProvider ::类,   Illuminate \ View \ ViewServiceProvider :: class,/ * Package Service   提供商...... / / *应用服务提供商...... /   软件\供应商\ AppServiceProvider ::类,   App \ Providers \ AuthServiceProvider :: class,//   软件\供应商\ BroadcastServiceProvider ::类,   软件\供应商\ EventServiceProvider ::类,   App \ Providers \ RouteServiceProvider :: class,],/   | ------------------------------------------------- ------------------------- |类别名   | ------------------------------------------------- ------------------------- | |此时将注册此类别名的数组   申请|开始了。但是,随意注册尽可能多   你希望作为|别名是"懒惰"加载所以他们不会阻碍   性能。 | * /'别名' => [' App' =>   Illuminate \ Support \ Facades \ App :: class,' Artisan' =>   Illuminate \ Support \ Facades \ Artisan :: class,' Auth' =>   Illuminate \ Support \ Facades \ Auth :: class,' Blade' =>   Illuminate \ Support \ Facades \ Blade :: class,' Broadcast' =>   Illuminate \ Support \ Facades \ Broadcast :: class,' Bus' =>   Illuminate \ Support \ Facades \ Bus :: class,' Cache' =>   Illuminate \ Support \ Facades \ Cache :: class,' Config' =>   Illuminate \ Support \ Facades \ Config :: class,' Cookie' =>   Illuminate \ Support \ Facades \ Cookie :: class,' Crypt' =>   Illuminate \ Support \ Facades \ Crypt :: class,' DB' =>   Illuminate \ Support \ Facades \ DB :: class,' Eloquent' =>   Illuminate \ Database \ Eloquent \ Model :: class,' Event' =>   Illuminate \ Support \ Facades \ Event :: class,' File' =>   Illuminate \ Support \ Facades \ File :: class,' Gate' =>   Illuminate \ Support \ Facades \ Gate :: class,' Hash' =>   Illuminate \ Support \ Facades \ Hash :: class,' Lang' =>   Illuminate \ Support \ Facades \ Lang :: class,' Log' =>   Illuminate \ Support \ Facades \ Log :: class,' Mail' =>   Illuminate \ Support \ Facades \ Mail :: class,' Notification' =>   照亮\支持\外观\通知::类,'密码' =>   Illuminate \ Support \ Facades \ Password :: class,' Queue' =>   Illuminate \ Support \ Facades \ Queue :: class,' Redirect' =>   Illuminate \ Support \ Facades \ Redirect :: class,' Redis' =>   Illuminate \ Support \ Facades \ Redis :: class,' Request' =>   Illuminate \ Support \ Facades \ Request :: class,' Response' =>   Illuminate \ Support \ Facades \ Response :: class,' Route' =>   Illuminate \ Support \ Facades \ Route :: class,' Schema' =>   Illuminate \ Support \ Facades \ Schema :: class,' Session' =>   Illuminate \ Support \ Facades \ Session :: class,' Storage' =>   Illuminate \ Support \ Facades \ Storage :: class,' URL' =>   Illuminate \ Support \ Facades \ URL :: class,' Validator' =>   Illuminate \ Support \ Facades \ Validator :: class,' View' =>   Illuminate \ Support \ Facades \ View :: class,],];

我使用putty通过ssh连接到我的vps服务器。

1 个答案:

答案 0 :(得分:5)

根据输出判断您的配置文件似乎有不正确的php开始标记(<?php)。