How to enable HTTP console on MongoDB 2.6 replica set

后端 未结 3 548
醉话见心
醉话见心 2021-02-10 17:59

I\'m running a 3 server MongoDB replica set. I recently upgraded from 2.4 to 2.6.

On 2.4 I was able to reach the HTTP Console on all three servers, regardless of whethe

3条回答
  •  名媛妹妹
    2021-02-10 18:58

    For mongodb v3.0.2 the mongod.conf is a yaml file, you should add these two lines after net:

    http.enabled: true
    http.RESTInterfaceEnabled: true
    

    my mongod.conf is

    net:
      bindIp: 127.0.0.1
    
      http.enabled: true
      http.RESTInterfaceEnabled: true
    

提交回复
热议问题