In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Official installation manual
Http://docs.mongodb.org/manual/tutorial/install-mongodb-on-red-hat/
After the installation is complete, the login appears with the following alarm:
1. Log in to mongo shell
[root@localhost ~] # mongo
Missing openssl, libssh3
Yum-y install opensslservice mongod restart
2.I use mongodb 3.0 and find a warning:
[root@localhost] # mongoMongoDB shell version: testServer has startup warnings: 2015-03-13T16:28:29.405+0800 I CONTROL [initandlisten] 2015-03-13T16:28:29.406+0800 I CONTROL [initandlisten] * * WARNING: / sys/kernel/mm/transparent_hugepage/enabled is' always'.2015-03-13T16:28:29.406+0800 I CONTROL [initandlisten] * * We suggest setting it to 'never'2015-03-13T16:28: 29.406 '0800 I CONTROL [initandlisten] 2015-03-13T16:28:29.407+0800 I CONTROL [initandlisten] * * WARNING: / sys/kernel/mm/transparent_hugepage/defrag is' always'.2015-03-13T16:28:29.407+0800 I CONTROL [initandlisten] * * We suggest setting it to 'never'2015-03-13T16:28:29.407+0800 I CONTROL [initandlisten]
Solved:
Add if test-f / sys/kernel/mm/transparent_hugepage/enabled; then echo never > / sys/kernel/mm/transparent_hugepage/enabledfiif test-f / sys/kernel/mm/transparent_hugepage/defrag; then echo never > / sys/kernel/mm/transparent_hugepage/ defragf to restart mongodservice mongod restart at the beginning of the vi / etc/init.d/mongod# line
3.Recommended ulimit Settings
Every deployment may have unique requirements and settings; however, the following thresholds and settings are particularly important for mongod and mongos deployments:
-f (file size): unlimited
-t (cpu time): unlimited
-v (virtual memory): unlimited [1]
-n (open files): 64000
-m (memory size): unlimited [1] [2]
-u (processes/threads): 64000
Always remember to restart your mongod and mongos instances after changing the ulimit settings to ensure that the changes take effect.
Vi / etc/profile
Add at the end
Ulimit-n 64000
Ulimit-u 64000
Source / etc/profile
2015-04-02T01:36:21.150-0700 I CONTROL [initandlisten] 2015-04-02T01:36:21.150-0700 I CONTROL [initandlisten] * WARNING: soft rlimits too low. Rlimits set to 1024 processes, 64000 files. Number of processes should be at least 32000: 0.5 times number of files.
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.