how to create mongodb keyfile in linux
MongoDb288
description
Generate the mongodb-keyfile file in linux,
ps: Need to set up user groups and permissions
sudo chmod 600 mongodb-keyfile
sudo chown 999 mongodb-keyfile
command
openssl rand -base64 666 > mongodb-keyfile
parameter
openssl: is a powerful, commercial-grade and full-featured toolkit for Transport Layer Security (TLS) and Secure Socket Layer (SSL) protocols rand: Generate random bytes of the specified length, here set to 666 -base64: code signing