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

ftp: Name or Service not known

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

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

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

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

JWTRefreshTokenBundle: Name or service not known

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

Name or service not known when running a Dash app

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

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

ping displays "Name or service not known"

AWS [Errno -2] Name or service not known

hostname: Name or service not known

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

Suppress "Name or service not known" on ping

Name or service not known in DHCP subnet

Ping : Name or service not known

Using ftp command results name or service not known

Rails Heroku SocketError: getaddrinfo: Name or service not known

Telnet returns Name or service not known

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

Python variable Name or service not known

Name or Service not known - intermittent error in Azure

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

java.net.UnknownHostException: Name or service not known

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

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

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

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

TOP Ranking

HotTag

Archive