How to enable HTTP console on MongoDB 2.6 replica set

后端 未结 3 566
醉话见心
醉话见心 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条回答
  •  梦毁少年i
    2021-02-10 18:46

    Adding

    httpinterface=true
    

    in /etc/mongod.conf enables it on http://127.0.0.1:28017 I had to add

    rest=true
    

    to enable REST interface so that commands in http console are working.

提交回复
热议问题