mongodbKeyFile文件生成

参考:http://docs.MongoDB.org/manual/tutorial/generate-key-file/

成都创新互联公司作为成都网站建设公司,专注重庆网站建设公司、网站设计,有关成都定制网站方案、改版、费用等问题,行业涉及木包装箱等多个领域,已为上千家企业服务,得到了客户的尊重与认可。

Generate a Key File

Overview

This section describes how to generate a key file to store authentication information. After generating a key file, specify the key file using the keyFile option when starting a mongod or mongos instance.

A key’s length must be between 6 and 1024 characters and may only contain characters in the base64 set. The key file must not have group or world permissions on UNIX systems. Key file permissions are not checked on Windows systems.

1、Create a key file.

Create the key file your deployment will use to authenticate servers to each other.

To generate pseudo-random data to use for a keyfile, issue the following openssl command:

openssl rand -base64 741 > mongodb-keyfile

chmod 600 mongodb-keyfile

chown mongod.mongod mongodb-keyfile

You may generate a key file using any method you choose. Always ensure that the password stored in the key file is both long and contains a high amount of entropy. Using openssl in this manner helps generate such a key.

2、Specify the key file when starting a MongoDB instance.

Specify the path to the key file with the keyFile option.


分享文章:mongodbKeyFile文件生成
本文来源:http://csruizhi.cn/article/poggpc.html

其他资讯

Copyright © 2007-2024 成都优众联杰科技有限公司 All Rights Reserved 蜀ICP备2024116266号
友情链接: 网站制作 手机网站制作 定制网站设计 成都网站建设 成都定制网站建设 成都响应式网站建设 重庆电商网站建设 成都网站设计 成都网站制作公司 外贸营销网站建设 成都网站设计 企业网站制作 网站建设公司 公司网站建设 自适应网站设计 成都企业网站制作 成都商城网站建设 定制级高端网站建设 成都网站建设公司 四川成都网站建设 成都网站设计 成都商城网站制作