No connection could be made because the target machine actively refused it LARAVEL 4 error
11,541
Solution 1
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!
Solution 2
The problem could be that your redis instance either isn't running at all or is running on different host and/or port address (or port 6379 is closed by firewall).
Author by
anuj rajput
Updated on June 04, 2022Comments
-
anuj rajput almost 2 years
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);