Hello!
On Fri, Oct 13, 2017 at 7:05 AM, Bino Oetomo wrote:
> local redis = require "resty.redis"
> local client = redis.connect("localhost", 6379)
One obvious mistake is that you should not use `localhost` here.
Rather, you should use 127.0.0.1 explicitly. This is because
`localhost` is usually implemented via the `/etc/hosts` file and
nginx's resolver does not support the local `/etc/hosts` file yet.
Regards,
Yichun