install mongoDB (child process failed, exited with error number 100)

后端 未结 9 1397
梦谈多话
梦谈多话 2020-12-08 10:21

I tried to install mongoDB on my macbook air.

I\'ve downloaded zipped file from official website and extract that file and move to root directory. After that, under

9条回答
  •  佛祖请我去吃肉
    2020-12-08 11:18

    The data folders you created were very likely created with sudo, yes? They are owned by root and are not writable by your normal user. If you are the only user of your macbook, then change the ownership of the directories to you:

    sudo chown juneyoungoh /data
    sudo chown juneyoungoh /data/db
    sudo chown juneyoungoh /data/log
    

    If you plan on installing this on a public machine or somewhere legit, then read more about mongo security practices elsewhere. I'll just get you running on your macbook.

提交回复
热议问题