Cannot access mongodb through browser - It looks like you are trying to access MongoDB over HTTP on the native driver port

前端 未结 5 1935
我在风中等你
我在风中等你 2021-01-30 11:09

I open terminal and enter the following commands

sudo mongod

which then outputs

[initandlisten] waiting for connections on port         


        
5条回答
  •  庸人自扰
    2021-01-30 11:56

    Before Mongo 3.6:

    You may start mongodb with

    mongod --httpinterface
    

    And access it on

    http://localhost:28017
    

    Since version 2.6: MongoDB disables the HTTP interface by default.

    Update

    HTTP Interface and REST API

    MongoDB 3.6 removes the deprecated HTTP interface and REST API to MongoDB.

    See Mongo http interface and rest api

提交回复
热议问题