On this page本页内容
Enabling access control on a MongoDB deployment enforces authentication. 在MongoDB部署上启用访问控制将强制执行身份验证。With access control enabled, users are required to identify themselves and can only perform actions that adhere to the permissions granted by the roles assigned to their user.启用访问控制后,用户需要标识自己,并且只能执行符合分配给其用户的角色授予的权限的操作。
If you would like to enable access control for a standalone MongoDB instance, please refer to one of the following resources:如果要为独立MongoDB实例启用访问控制,请参阅以下资源之一:
If you would like to enable access control for a replica set or a sharded cluster, please refer to one of the following resources:如果要启用副本集或分片群集的访问控制,请参阅以下资源之一:
To create additional users, see Create a User.要创建其他用户,请参阅创建用户。
To manage users, assign roles, and create custom roles, see Manage Users and Roles.要管理用户、分配角色和创建自定义角色,请参阅管理用户和角色。