Name or service not known [tcp://redis:6379]

oajmi

i am having 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 the localhost on port 6379 ready and listened:

enter image description here

someone plz tell me what's happenig here?enter image description here

Eytan Avisror

Change REDIS_HOST=redis to REDIS_HOST=localhost, it is looking for a host named redis and not finding it, since redis is installed on the same machine you should use localhost or 127.0.0.1.

Once you've done this, make sure you reload the .env config - php artisan config:clear

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Redis at some-redis:6379: Name or service not known

Error -2 connecting to redis://redis:6379:6379. Name or service not known

redis.exceptions.ConnectionError: Error -2 connecting to localhost:6379. Name or service not known

Getting Name of service not known with Redis [Error -2]

JWTRefreshTokenBundle: Name or service not known

ftp: Name or Service not known

hostname: Name or service not known

Ping : Name or service not known

Error occured with redis HMSEET, dial tcp :6379: connect: connection refused

Laravel : Redis No connection could be made : [tcp://127.0.0.1:6379]

Can't bind TCP listener *:6379 using Redis on Windows

Error -3 connecting to redis:6379. Temporary failure in name resolution

ping displays "Name or service not known"

Telnet returns Name or service not known

Python variable Name or service not known

Suppress "Name or service not known" on ping

Name or service not known in DHCP subnet

Error dial tcp 127.0.0.1:6379: connect: connection refused when starting Redis container without Docker Compose

Redis : Creating Server TCP listening socket *:6379: unable to bind socket, errno: 13

java.net.UnknownHostException: Name or service not known

gaierror: [Errno -2] Name or service not known | pysftp

Using ftp command results name or service not known

Name or service not known when running a Dash app

Name or Service not known - intermittent error in Azure

Rails Heroku SocketError: getaddrinfo: Name or service not known

AWS [Errno -2] Name or service not known

Newbie, error: [Errno -2] Name or service not known

Connection error with PHPMailer and SMTP: node name or service name not known

Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED 127.0.0.1:6379 nodejs