一:问题描述

我在浏览器里输入mongodb所在机器IP及端口号:http://192.168.59.140:27017/
页面出现:
It looks like you are trying to access MongoDB over HTTP on the native driver port.
如图:

配置Mongodb-进入web控制台无法显示报错
二:出错原因

没有以–httpinterface参数启动mongodb,且应该以你的mongodb端口号+1000进行访问。

三:解决办法

以–httpinterface参数启动mongodb。
如:

[plain] view plain copy
1. ./bin/mongod -f /home/mongodb/etc/mongo.conf –httpinterface

在浏览器里输入:http://192.168.59.140:28017/

配置Mongodb-进入web控制台无法显示报错

相关文章: