Because redis-cli does not assume anything about your environment.
Redis itself does not define a default path for its configuration, so
redis-cli cannot either.
Plus, redis-cli can't even assume it is run on the same host as the
server.
You have two possibilities:
1. Read your configuration in the service file to extract the IP
2. Just kill the server, it will cleanly shutdown (at least if you send
it a SIGTERM).
> --
> You received this message because you are subscribed to the Google Groups "Redis DB" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
redis-db+u...@googlegroups.com.
> To post to this group, send email to
redi...@googlegroups.com.
> Visit this group at
https://groups.google.com/group/redis-db.
> For more options, visit
https://groups.google.com/d/optout.