I installed Ubuntu Bash on a Windows 10 PC. After that, Redis uses the apt-get install command. I could connect to redis using the redis-cli , which information showed the details.
# Server redis_version:2.8.4 redis_git_sha1:00000000 redis_git_dirty:0 redis_build_id:a44a05d76f06a5d9 redis_mode:standalone
After that, I created a replica that I could connect to, and
Post that I started Sentinel using the default configuration file, which is installed from the /etc/redis/ .
The command I used to run redis is sudo redis-server /etc/redis/sentinel1.conf --sentinel
But if I try to connect using the redis-cli -p 26379 , I get this error
laptop:~$ redis-cli -p 26379 Could not connect to Redis at 127.0.0.1:26379: Connection refused not connected>
I checked the sentinel.conf file indicated by port 26379
I even tried running redis-sentinel /path/to/sentinel.conf with redis-sentinel /path/to/sentinel.conf But the same error.
The same setup works fine on Ubuntu running in a virtual machine
Edit
I am running Ubuntu on WIndows 10 Bash So the netstat -tunlpa shows this
vipresh@VIPRESHJH :/etc/redis$ sudo netstat -tunlpa Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
And the output of ps aux| grep redis ps aux| grep redis is
vipresh@VIPRESHJH :/etc/redis$ ps aux| grep redis redis 24 0.0 0.0 0 0 ? Ssl 2432 0:00 /usr/bin/redis-server 127.0.0.1:6379 root 57 0.0 0.0 0 0 ? Ssl 2432 0:00 redis-server *:26379 vipresh 61 0.0 0.0 0 0 ? S 2432 0:00 grep --color=auto redis
It shows that Sentinel is running on port 26379
windows-10 ubuntu redis-sentinel
Vipresh
source share