雪珂8080 发表于 2016-5-15 12:08:45

在Mac OS上安装配置mongoDB

从 http://www.mongodb.org/downloads 下载 mac os版本的mongodb

解压到合适的目录

cd 到 bin目录下,运行./mongod -h 查看mongod的帮助信息:

--maxConns arg            max number of simultaneous connections - 20000 by
                              default
--logpath arg               log file to send write to instead of stdout - has
                              to be a file, not directory
--auth                      run with security
--dbpath arg                directory for datafiles - defaults to /data/db/

启动mongod:
/mongod --logpath /Users/hongjie/Local/mongodb-osx-x86_64-2.4.3/log/sys.log --dbpath /Users/hongjie/Local/mongodb-osx-x86_64-2.4.3/data/ &

添加bin目录到PATH
页: [1]
查看完整版本: 在Mac OS上安装配置mongoDB