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

来源:互联网 发布:手机变声器软件 编辑:程序博客网 时间:2024/05/20 09:26

一:问题描述

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

这里写图片描述
二:出错原因

没有以–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/

这里写图片描述

阅读全文
1 0
原创粉丝点击