想要实现以下场景:
连接mongos进程的时候,需要提供用户名和密码。
mongos的配置服务器采用副本集。
mongos创建的集合开启分片功能。
目前卡在怎么配置开启用户认证这一步了,看网上的教程不怎么详细。求助。
迷茫2017-05-02 09:27:02
There are many forms of authentication. I think you should want the simplest integrated verification. Please refer to the documentation to see if there is anything you don’t understand
https://docs.mongodb.com/manu...
https://docs.mongodb.com/manu...
为情所困2017-05-02 09:27:02
The answer on the first floor is very complete, here is a supplement:
One of the official documents is a textbook specifically explaining how to configure authentication in the Sharding environment:
https://docs.mongodb.com/manu...
Basically, you need to complete: 1. Configure internal authentication (inside Sharded Cluster); 2. Configure authentication from the client to the Sharded environment.
Configuration requires a lot of manual operations. If you can purchase and use MongoDB Ops Manager, things will become much simpler, and you can concentrate on designing the program.
For reference.
Love MongoDB! Have Fun!