![]() Since it won’t always be possible to connect to your MongoDB server via your localhost interface, we will use the first approach in this post and create the user administrator before we restart our MongoDB server with authentication. You can also always disable the local host exception by passing -setParameter enableLocalhostAuthBypass=0 to your server. Note that the localhost exception is only active as long as no users have been created in your MongoDB instance. Proceed to create your system user administration – which must be the first user you create this way. ![]() without any authentication required) to your instance via the localhost interface. This localhost exception grants you full access (i.e. Now connect to your MongoDB server from localhost.Start your MongoDB server with authentication enabled straight away.However, it requires localhost access to your server: This approach lets you run your MongoDB server with authentication right from the beginning. You can now connect to your server as that user administrator.Įnable user authentication right away and use the localhost exception ![]()
0 Comments
Leave a Reply. |