Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No connection could be made because the target machine actively refused it LARAVEL 4 error

Tags:

php

redis

laravel

No connection could be made because the target machine actively refused it. [tcp://127.0.0.1:6379] in laravel 4.My code is:

    $redis = Redis::connection();
    $redis->set('name', 'Taylor');
    $name = $redis->get('name');
    $values = $redis->lrange('names', 5, 10);
like image 541
anuj rajput Avatar asked Jan 14 '23 10:01

anuj rajput


1 Answers

After Installing redis server(you can download it form redis) you should simply run file redis-server.exe often located in C:\Program Files\Redis\ and refresh your page!