Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redis 报错问题 #2

Open
wubuze opened this issue Jan 24, 2019 · 0 comments
Open

redis 报错问题 #2

wubuze opened this issue Jan 24, 2019 · 0 comments

Comments

@wubuze
Copy link

wubuze commented Jan 24, 2019

如果redis 出现以下问题,可以更改 config/database.php 文件,可以解决
local.ERROR: Uncaught Error: Call to undefined method Illuminate\Support\Facades\Redis::connect()

database.php
'redis' => [

    'client' => 'phpredis',    //  phpredis  改为 predis

    'default' => [
        'host' => env('REDIS_HOST', 'localhost'),
        'password' => env('REDIS_PASSWORD', null),
        'port' => env('REDIS_PORT', 6379),
        'database' => 0,
    ],

],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant