Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connection refused [tcp://127.0.0.1:6379] Laravel 5.6

I've been struggling with starting redis on my system and all i get is connection refused ! I tried : config/database , switch between 127.0.0.1 and localhost and .... So what can i do to make it work ? Notice : i'm using laradock and other packages are working just fine

like image 272
Alireza Amrollahi Avatar asked Oct 12 '25 00:10

Alireza Amrollahi


1 Answers

Instead of using localhost or 127.0.0.1, you must use the ((redis)) in .env Laravel.

According to the above code:

REDIS_HOST=redis
REDIS_PASSWORD=YOUR_PASSWORD
REDIS_PORT=6379
like image 190
Amin Jafari Avatar answered Oct 15 '25 20:10

Amin Jafari



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!