Solution: MongoDB permissions on/data/K0 are too open

Source: Internet
Author: User

When you deploy a MongoDB cluster (replica set), the Key File Permission fails. the startup parameters are as follows:

Mongod -- replset RS1 -- Keyfile/data/K0 -- fork -- Port 27017 -- dbpath/data/rs0 -- logpath =/data/log/r0.log -- logappend The error message is as follows:

Sun Jan 27 14:18:06 permissions on/data/K0 are too open

Check the K0 file permissions:[Root @ vm3 data] # ll/data/K0

-RW-r -- 1 Root 29 01-27 13:57/data/K0

You can see that anyone has the read permission, because the permission is too large, you need to lower the permission:[Root @ vm3 data] # chmod 400/data/K0

Enable OK again

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.