当前位置:首页 > 数据库 > 正文

踩坑记录-连接 MongoDB Compass Community 报错

2020-02-13 数据库

在控制台输入 mongod 启动 mongodb服务,地址栏输入http://localhost:27017/ 能看到下图,表示服务启动成功。

打开”MongoDB Compass Community“软件 点击”connect"按钮时报 MongoDB not running on the provided host and port的错误,如下图:

原因:之前由于工作需要,在host文件里 配置127.0.0.1 为xxxx,应该改为localhost

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/SQL/15482.html