mongodb - Can't run mongod ***aborting after fassert() failure on mac -


i working through mongodb installation video on mongodb university. https://www.youtube.com/watch?v=_wj8m5qhvwc mac user , encountered problem when tried run mongod command first time. new mongodb user , appreciate this. thank you.

edit: first step took finding download page on google. selected first organic link. did not download cloud service. downloaded , installed onto machine. downloaded recent production version. used mac download.

next, after downloading, went downloads directory in terminal untar file

tar xvf mongodb-osx-ssl-x86_64-3.4.3.tgz 

that expanded tarball. entered directory using

cd mongodb-osx-ssl-x86_64-3.4.3 

and looked around. saw licence, readme, , bin directory.

i went bin directory.

cd bin 

next, looked inside bin directory

ls -l 

i saw bunch of mongo programs. in here found mongo (shell) , mongod (server). understand server put data in /data/db default.

next proceeded make directory. went root in order running

sudo bash 

i ran

mkdir -p /data/db chmod 777 /data chmod 777 /data/db 

next, exited root shell. looked inside bin directory.

    roberts-macbook-air:downloads robertchecco$ cd mongodb-osx-x86_64-3.4.3 roberts-macbook-air:mongodb-osx-x86_64-3.4.3 robertchecco$ ls gnu-agpl-3.0        readme          bin mpl-2           third-party-notices roberts-macbook-air:mongodb-osx-x86_64-3.4.3  robertchecco$ cd bin roberts-macbook-air:bin robertchecco$ ls bsondump    mongodump   mongoimport mongoreplay mongostat mongo       mongoexport mongooplog  mongorestore    mongotop mongod      mongofiles  mongoperf   mongos roberts-macbook-air:bin robertchecco$ ./mongod 2017-03-28t23:07:48.262-0400 control  [initandlisten] mongodb    starting : pid=77503 port=27017 dbpath=/data/db 64-bit host=roberts-macbook-air.local 2017-03-28t23:07:48.263-0400 control  [initandlisten] db version v3.4.3 2017-03-28t23:07:48.263-0400 control  [initandlisten] git version: f07437fb5a6cca07c10bafa78365456eb1d6d5e1 2017-03-28t23:07:48.264-0400 control  [initandlisten] openssl version: openssl 0.9.8zh 14 jan 2016 2017-03-28t23:07:48.264-0400 control  [initandlisten] allocator: system 2017-03-28t23:07:48.264-0400 control  [initandlisten] modules: none 2017-03-28t23:07:48.264-0400 control  [initandlisten] build environment: 2017-03-28t23:07:48.264-0400 control  [initandlisten]     distarch: x86_64 2017-03-28t23:07:48.264-0400 control  [initandlisten]     target_arch: x86_64 2017-03-28t23:07:48.264-0400 control  [initandlisten] options: {} 2017-03-28t23:07:48.265-0400 w -        [initandlisten] detected unclean shutdown - /data/db/mongod.lock not empty. 2017-03-28t23:07:48.267-0400 e network  [initandlisten] failed unlink socket file /tmp/mongodb-27017.sock permission denied 2017-03-28t23:07:48.267-0400 -        [initandlisten] fatal assertion 28578 @ src/mongo/util/net/listen.cpp 194 2017-03-28t23:07:48.267-0400 -        [initandlisten]   ***aborting after fassert() failure 


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -