在Mac OS上安装配置mongoDB
程序员文章站
2023-12-22 08:36:40
...
从 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
解压到合适的目录
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
推荐阅读