mongodb 提示keyfile is too open

fork=true
dbpath=/data/mongodb/data
logpath=/data/mongodb/log/mongodb.log
logappend=true
bind_ip=xxxx
port=27017
auth=true
keyFile=/data/mongodb/conf/keyfile.txt
#master=true
slave=true
autoresync=true
source=xxx:27017

 

 permissions on /data/mongodb/conf/keyfile.txt are too open

keyfile.txt 的内容最好由md5生成

并且keyfile.txt 需要设置为 -r-------- 1 user_00 users 939 Jun  2 11:05 keyfile.txt

chmod 400 keyfile.txt

设置为仅自己可读

 

posted @ 2015-06-02 12:01  jimshi  阅读(1636)  评论(0编辑  收藏  举报