简体   繁体   中英

Mongo Server Startup Warnings

$ ./bin/mongo 
MongoDB shell version: 2.6.1
connecting to: test
Server has startup warnings: 
2014-08-09T15:26:23.251-0400 [initandlisten] 
2014-08-09T15:26:23.251-0400 [initandlisten] ** WARNING: soft rlimits too low. Number of files is 256, should be at least 1000

Just want to fix the errors

A simple way to fix this is setting the limit just before starting mongod with this:

ulimit -n 1024 && mongod

Or this:

launchctl limit maxfiles 1024 1024

Pls read full answer here .

Similar problem was addressed in MongoDb 3.0 manual. Please check the below link

http://docs.mongodb.org/manual/reference/ulimit/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM