search

Home  >  Q&A  >  body text

给mongodb添加用户和认证以及设置管理员账号??

滿天的星座滿天的星座2758 days ago656

reply all(2)I'll reply

  • 滿天的星座

    滿天的星座2017-04-28 09:06:54

    First you have to set a password
    The installation is complete
    Start the service
    service mongod start
    Start ok

    mongo admin -u freewolf -p 123456
    Create account and password

    Then OK

    reply
    0
  • 滿天的星座

    滿天的星座2017-04-28 09:06:54

    It seems that the poster’s interface is the same as the Robomongo interface I use. The default mongo localhost: 27017 username and password are empty, so you can connect directly. If you have not added a username and password to mongo, there is no need to check the Authentication section.

    mongo add new user:

    https://docs.mongodb.org/manual/tutorial/manage-users-and-roles/

    reply
    0
  • Cancelreply