Name or service unknown [tcp: // redis: 6379]

I have a problem setting up redis cache with laravel. I have a redis server runnig on my local machine:

enter image description here

my.env:

enter image description here

I have a local host on port 6379 that is ready and listening:

enter image description here

someone plz tell me what happened here? enter image description here

+4
source share
1 answer

Change REDIS_HOST=redisto REDIS_HOST=localhost, it searches for a host with a name redisand does not find it, since redis is installed on the same computer that you must use localhostor 127.0.0.1.

Once you do this, make sure you reload the .env configuration - php artisan config:clear

+4
source

Source: https://habr.com/ru/post/1692472/


All Articles