In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
When starting mongodb, if the parameters of the configuration file are not adjusted, it will lead to errors and warnings at startup, so let's take a look at
The causes and Solutions of Common warnings
It is fine when starting mongodb, but there is a warning when connecting to mongod.
WARNING: soft rlimits too low. Rlimits set to 1024 processes, 32000 files
Open the log file and find the following:
2016-01-21T14:20:57.243+0800 I CONTROL [initandlisten] * * WARNING: soft rlimits too low. Rlimits set to 7822 processes, 65535 files. Number of processes should be at least 32767.5: 0.5 times number of files.
It should be said that our parameters are not adjusted properly, resulting in an insufficient number of processes in mongodb, so we can add the following to the configuration file / etc/security/limits.conf of mongodb
Mongod soft nofile 64000
Mongod hard nofile 64000
Mongod soft nproc 32000
Mongod hard nproc 32000
Then restart the service and you won't see the warning.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.