mongodb - failed to connect to server [localhost:27017] on first connect
本文介绍了mongodb - failed to connect to server [localhost:27017] on first connect的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
已安装mongodb,并通过mongo启动
运行命令 supervisor --harmony index 报错
解决方案
尝试ping下localhost
ping: cannot resolve localhost: Unknown host
修改host文件,添加127.0.0.1 localhost 即可
重启服务即可...
这篇关于mongodb - failed to connect to server [localhost:27017] on first connect的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文