nodename nor servname provided, or not known

时间:2017-06-27 12:52:01   收藏:0   阅读:2935

mac来使用redis然后产生上述错误,据说是用户名的问题

解决:

    打开终端:

      cat /private/etc/hosts

      sudo vi /private/etc/hosts

     将错误的那个名字加入到hosts当中

     127.0.0.1      错误的名字

     然后保存退出

   刷新下

           dscacheutil -flushcache

   错误解决。

原文:http://www.cnblogs.com/liuyangfirst/p/7084532.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!