No awards yet.


1 Posts
  • Published Question

    How to configure MongoDB 3.4 auto start with authentication when OS Ubuntu 16.04 reboot?

    I can make this work without authentication but when I add "authorization: enabled" into /etc/mongod.conf, the mongod.service stops working. Please help.
    Accepted Answer: Hi @linaizhong Add the following to /etc/mongodb.conf (I'm expecting you're using MongoDB 3+) security: authorization: enabled If you already have the security: section, then make sure the second line is indented.
    1 By linaizhong MongoDB Ubuntu