简体   繁体   中英

MongoDB --keyFile has password, but which user?

I write in my mongod, mongos, configdb -> --keyFile C:/secret.txt

secret.txt is a text -> 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. 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.

Enabling keyfile also enables auth ( authentication ) for your MongoDB deployment. To set up user accounts you need to:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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