Can't initiate replica set in Ubuntu

后端 未结 5 1509
隐瞒了意图╮
隐瞒了意图╮ 2020-12-30 21:57

Whenever I type: rs.initiate(), I get the following error message:

{
    \"info2\" : \"no configuration explicitly specified -- making one\",
           


        
5条回答
  •  别那么骄傲
    2020-12-30 22:24

    Yeah, exactly, or you can change your hostname to something that is already in your /etc/hosts pointing to 127.0.0.1 such as localhost.

    With a mac you can do this by typing sudo scutil –-set HostName localhost.

提交回复
热议问题