Installing and Running MongoDB on OSX

前端 未结 10 1378
醉话见心
醉话见心 2020-12-02 05:21

If someone can provide some insights here I would GREATLY appreciate it.

I am new to MongoDB, and (relatively) new to the command line.

I had a express/nod

10条回答
  •  猫巷女王i
    2020-12-02 06:00

    additionally you may want mongo to run on another port, then paste this command on terminal,

    mongod --dbpath /data/db/ --port 27018
    

    where 27018 is the port we want mongo to run on

    assumptions

    1. mongod exists in your bin i.e /usr/local/bin/ for mac ( which would be if you installed with brew), otherwise you'd need to navigate to the path where mongo is installed
    2. the folder /data/db/ exists

提交回复
热议问题