MacBook-Air-ckei ckei brew install mongodb Downloading https downloads

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
MacBook-Air-ckei:~ ckei$ brew install mongodb
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/mongodb-2.6
######################################################################## 100,0%
==> Pouring mongodb-2.6.1.mavericks.bottle.tar.gz
==> Caveats
To have launchd start mongodb at login:
ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents
Then to load mongodb now:
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
Or, if you don't want/need launchctl, you can just run:
mongod --config /usr/local/etc/mongod.conf
==> Summary
🍺 /usr/local/Cellar/mongodb/2.6.1: 17 files, 317M
MacBook-Air-ckei:~ ckei$ mongo
MongoDB shell version: 2.6.1
connecting to: test
2014-06-05T21:17:14.635+0400 warning: Failed to connect to 127.0.0.1:27017, reason: errno:61 Connection refused
2014-06-05T21:17:14.636+0400 Error: couldn't connect to server 127.0.0.1:27017 (127.0.0.1), connection attempt failed at src/mongo/shell/mongo.js:146
exception: connect failed
MacBook-Air-ckei:~ ckei$ mongod
mongod --help for help and startup options
2014-06-05T21:17:23.218+0400 [initandlisten] MongoDB starting : pid=10019 port=27017 dbpath=/data/db 64-bit host=MacBook-Air-ckei.local
2014-06-05T21:17:23.218+0400 [initandlisten]
2014-06-05T21:17:23.218+0400 [initandlisten] ** WARNING: soft rlimits too low. Number of files is 256, should be at least 1000
2014-06-05T21:17:23.218+0400 [initandlisten] db version v2.6.1
2014-06-05T21:17:23.218+0400 [initandlisten] git version: nogitversion
2014-06-05T21:17:23.218+0400 [initandlisten] build info: Darwin minimavericks.local 13.1.0 Darwin Kernel Version 13.1.0: Wed Apr 2 23:52:02 PDT 2014; root:xnu-2422.92.1~2/RELEASE_X86_64 x86_64 BOOST_LIB_VERSION=1_49
2014-06-05T21:17:23.218+0400 [initandlisten] allocator: tcmalloc
2014-06-05T21:17:23.218+0400 [initandlisten] options: {}
2014-06-05T21:17:23.218+0400 [initandlisten] exception in initAndListen: 10296
*********************************************************************
ERROR: dbpath (/data/db) does not exist.
Create this directory or give existing directory in --dbpath.
See http://dochub.mongodb.org/core/startingandstoppingmongo
*********************************************************************
, terminating
2014-06-05T21:17:23.218+0400 [initandlisten] dbexit:
2014-06-05T21:17:23.218+0400 [initandlisten] shutdown: going to close listening sockets...
2014-06-05T21:17:23.218+0400 [initandlisten] shutdown: going to flush diaglog...
2014-06-05T21:17:23.218+0400 [initandlisten] shutdown: going to close sockets...
2014-06-05T21:17:23.218+0400 [initandlisten] shutdown: waiting for fs preallocator...
2014-06-05T21:17:23.218+0400 [initandlisten] shutdown: lock for final commit...
2014-06-05T21:17:23.218+0400 [initandlisten] shutdown: final commit...
2014-06-05T21:17:23.218+0400 [initandlisten] shutdown: closing all files...
2014-06-05T21:17:23.219+0400 [initandlisten] closeAllFiles() finished
2014-06-05T21:17:23.219+0400 [initandlisten] dbexit: really exiting now
MacBook-Air-ckei:~ ckei$