In my Ubuntu virtual machine in Hyper-V, I have installed Redis and it runs on startup (by doing sudo systemctl enable redis
) and I have configured it to bind 127.0.0.1 192.168.10.100
in the config (the 2nd IP is for internal connections across the local network).
The problem I have is that when I start the virtual machine, it won't allow connections from other local computers (connecting from 192.168.10.100
). But when I restart Redis by doing sudo systemctl restart redis
it only then allows.
This problem is not because I forgot to restart Redis when adding 192.168.10.100
to the Redis bind.
/etc/systemd/system/redis.service
so I'm not sure. Looking at that file I don't see where I could bind it. It does have--supervised systemd
. It also says--daemonized no
but inredis.conf
it's set to yesRequires=secondip.service
and/orAfter=secondip.service