Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Solution: permissions on / data/k0 are too open of mongodb

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Key file permissions failed when deploying mongodb cluster (Replica set). Startup parameters are as follows: mongod-- replSet rs1-- keyFile / data/k0-- fork-- port 27017-- dbpath / data/rs0-- logpath=/data/log/r0.log-- logappend error content is as follows: Sun Jan 27 14:18:06 permissions on / data/k0 are too open check K0 file permissions: [root@vm3 data] # ll / data/k0

-rw-r--r-- 1 root root 29 01-27 13:57 / data/k0 you can see that anyone has read permissions because the permissions are too large and need to be reduced: [root@vm3 data] # chmod 400 / data/k0 start ok again

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report