简体   繁体   English

MongoDB --keyFile有密码,但是哪个用户?

[英]MongoDB --keyFile has password, but which user?

I write in my mongod, mongos, configdb -> --keyFile C:/secret.txt 我在我的mongod,mongos,configdb - > --keyFile C:/secret.txt中写

secret.txt is a text -> blabla secret.txt是一个文本 - > blabla

How can I to use this password? 我该如何使用这个密码?

Thank you! 谢谢!

The keyfile value points to a file path for a "pre-shared key" that will be used for authentication between the members of your sharded cluster or replica set. keyfile文件值指向“预共享密钥”的文件路径,该“预共享密钥”将用于在分片集群或副本集的成员之间进行身份验证。 This is effectively an internal "password" that can only be used by system processes, not by end users. 这实际上是一个内部“密码”,只能由系统进程使用,而不能由最终用户使用。 See Authentication Between MongoDB Instances for more details. 有关更多详细信息,请参阅MongoDB实例之间的身份验证

Enabling keyfile also enables auth ( authentication ) for your MongoDB deployment. 启用keyfile还可以为MongoDB部署启用auth身份验证 )。 To set up user accounts you need to: 要设置用户帐户,您需要:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM