$ mongod --config /etc/mongod.conf
ERROR: could not read from config file
Allowed options:
General options:
-h [ --help ] show this usage information
--version show version information
当我运行“ mongo”时,命令终端变得无响应:
$ mongo
MongoDB shell version: 2.4.5
connecting to: test
--- no response ----
请注意:我是第一次在MacOS X上运行MongoDB。
安装时的默认mongo.config文件没有:
port = 27017
我从http://docs.mongodb.org/manual/administration/configuration/更新了配置文件
在终端中运行mongo命令可以正常工作:
mongo
没有陷入无限循环,而是激活了mongodb提示>。
MongoDB shell version: 2.4.5
connecting to: test
Server has startup warnings:
Fri Jul 12 02:17:19.667 [initandlisten]
Fri Jul 12 02:17:19.667 [initandlisten] ** WARNING: soft rlimits too low. Number of files is 256, should be at least 1000
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句