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

在控制台输入 mongod 启动 mongodb服务,地址栏输入http://localhost:27017/ 能看到下图,表示服务启动成功。
启动 mongodb服务图
打开”MongoDB Compass Community“软件 点击”connect"按钮时报 MongoDB not running on the provided host and port的错误,如下图:
错误图

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

猜你喜欢

转载自www.cnblogs.com/superlizhao/p/12024062.html
今日推荐