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 ping
sudo systemctl status redis
(Linux)brew services list | grep redis
(Mac)
redis-cli
redis-cli -h localhost -p 6379
redis-cli -h localhost -p 6379 -a password
lsof -i :6379
(Mac/Linux)netstat -ano | findstr :6379
(Windows)
redis-server
sudo 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 redis
redis-server --version
netstat -tlnp | grep 6379
redis-cli -h localhost -p 6379 info
redis-server /etc/redis/redis.conf
Redis requires authentication but no password provided:
redis-cli -a your_password
AUTH your_password
requirepass
in redis.confCONFIG SET requirepass your_password
Another process is using Redis's port:
lsof -i :6379
redis-cli shutdown
sudo kill -9 PID
port 6380
redis-server --port 6380