一:问题描述

我在浏览器里输入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控制台无法显示报错

相关文章:

  • 2021-06-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-23
  • 2022-03-02
  • 2021-12-29
  • 2022-12-23
猜你喜欢
  • 2021-05-10
  • 2021-12-24
  • 2021-12-05
  • 2021-11-28
  • 2022-02-26
  • 2021-05-25
相关资源
相似解决方案