本地/etc/hosts里配的地址,怎么配resolver啊?
On May 14, 5:58 pm, 刘太华 <def...@gmail.com> wrote:
> 试试配置做nginx conf中的resolver, nginx_lua或是是能使用到这个来解析.
>
> 在 2012年5月14日 下午5:54,Wendal Chen <wendal1...@gmail.com>写道:
>
>
>
>
>
>
>
>
>
> > nginx不认hosts的哦
>
> > 自己解析一个hosts文件,或者搭建个本地bind吧
>
> > 在 2012年5月14日 下午5:35,huang kun <kun...@gmail.com>写道:
>
> > local ok, err, errno, sqlstate = dbConnection:connect{
> >> host = "10.0.0.102",
> >> port = 3306,
> >> database = "xxxx",
> >> user = "xxxx",
> >> password = "xxxx",
> >> max_packet_size = 1024 * 1024 }
>
> >> 请问这里host如何使用在linux的/etc/hosts中配置的数据库地址呢?比如 host = "devDB",报错:db
> >> connect error:failed to connect: no resolver defined to resolve
> >> "devDB",怎么配置才可以解析?
>
> >> --
> > Wendal Chen
> > GuangDong China
>
> > --
> 刘太华