Did you mean to connect to: redis://localhost:6379?
Port 6379 is for Redis cache connections. Use redis-cli or your application client to connect.
redis-cli ping.
redis-cli pingsudo systemctl status redis (Linux)brew services list | grep redis (Mac)
redis-cliredis-cli -h localhost -p 6379redis-cli -h localhost -p 6379 -a password
lsof -i :6379 (Mac/Linux)netstat -ano | findstr :6379 (Windows)
redis-serversudo systemctl start redis (Linux)brew services start redis (Mac)
Port 6379 is the default port for:
Redis server is not running or not accessible:
redis-server or sudo systemctl start redisredis-server --versionnetstat -tlnp | grep 6379redis-cli -h localhost -p 6379 inforedis-server /etc/redis/redis.confRedis requires authentication but no password provided:
redis-cli -a your_passwordAUTH your_passwordrequirepass in redis.confCONFIG SET requirepass your_passwordAnother process is using Redis's port:
lsof -i :6379redis-cli shutdownsudo kill -9 PIDport 6380redis-server --port 6380