I want to install Mongodb for my next online web course but the thing is I'm having so much issues. I have been installing and uninstall mongodb so many times I think it's conflicting with temp ... Can someone guide me to the process please, really would appreciate it.
The error when running mongodb:
017-07-02T10:31:41.547-0400 I STORAGE [initandlisten] exception in initAndListen: 20 Attempted to create a lock file on a read-only directory: /data/db, terminating 2017-07-02T10:31:41.547-0400 I NETWORK [initandlisten] shutdown: going to close listening sockets... 2017-07-02T10:31:41.547-0400 I NETWORK [initandlisten] shutdown: going to flush diaglog... 2017-07-02T10:31:41.547-0400 I CONTROL [initandlisten] now exiting 2017-07-02T10:31:41.547-0400 I CONTROL [initandlisten] shutting down with code:100 –
I tried installing it on homebrew , nothing happen, I tried installing it manually still having troubles.. I know my basic like cd,ls,rm,pwd,touch, when using the terminal, If theres process that i can wipe everything associate with mangodb in my Macbook and install it again i have no problem.
found out that /data/db is readonly