Created
September 25, 2015 02:33
-
-
Save melissamarima/fa498b08ace68b0db67d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
melissa@simba:/$ sudo chown -R mongodb /data | |
melissa@simba:/$ ls -alt /data | |
total 12 | |
drwxr-xr-x 3 mongodb root 4096 2015-09-24 19:14 db | |
drwxr-xr-x 23 root root 4096 2015-09-15 00:47 .. | |
drwxr-xr-x 3 mongodb root 4096 2013-01-31 07:45 . | |
melissa@simba:/$ mongo | |
MongoDB shell version: 2.6.11 | |
connecting to: test | |
2015-09-25T02:33:42.552+0000 warning: Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused | |
2015-09-25T02:33:42.553+0000 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 | |
melissa@simba:/$ mongod & | |
[1] 17012 | |
melissa@simba:/$ mongod --help for help and startup options | |
2015-09-25T02:33:46.027+0000 [initandlisten] MongoDB starting : pid=17012 port=27017 dbpath=/data/db 64-bit host=simba | |
2015-09-25T02:33:46.027+0000 [initandlisten] db version v2.6.11 | |
2015-09-25T02:33:46.028+0000 [initandlisten] git version: d00c1735675c457f75a12d530bee85421f0c5548 | |
2015-09-25T02:33:46.028+0000 [initandlisten] build info: Linux build4.ny.cbi.10gen.cc 2.6.32-431.3.1.el6.x86_64 #1 SMP Fri Jan 3 21:39:27 UTC 2014 x86_64 BOOST_LIB_VERSION=1_49 | |
2015-09-25T02:33:46.028+0000 [initandlisten] allocator: tcmalloc | |
2015-09-25T02:33:46.028+0000 [initandlisten] options: {} | |
2015-09-25T02:33:46.028+0000 [initandlisten] exception in initAndListen: 10309 Unable to create/open lock file: /data/db/mongod.lock errno:13 Permission denied Is a mongod instance already running?, terminating | |
2015-09-25T02:33:46.028+0000 [initandlisten] dbexit: | |
2015-09-25T02:33:46.028+0000 [initandlisten] shutdown: going to close listening sockets... | |
2015-09-25T02:33:46.028+0000 [initandlisten] shutdown: going to flush diaglog... | |
2015-09-25T02:33:46.028+0000 [initandlisten] shutdown: going to close sockets... | |
2015-09-25T02:33:46.028+0000 [initandlisten] shutdown: waiting for fs preallocator... | |
2015-09-25T02:33:46.028+0000 [initandlisten] shutdown: lock for final commit... | |
2015-09-25T02:33:46.028+0000 [initandlisten] shutdown: final commit... | |
2015-09-25T02:33:46.028+0000 [initandlisten] shutdown: closing all files... | |
2015-09-25T02:33:46.028+0000 [initandlisten] closeAllFiles() finished | |
2015-09-25T02:33:46.028+0000 [initandlisten] shutdown: removing fs lock... | |
2015-09-25T02:33:46.028+0000 [initandlisten] couldn't remove fs lock errno:9 Bad file descriptor | |
2015-09-25T02:33:46.028+0000 [initandlisten] dbexit: really exiting now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment