Installing and Running MongoDB on OSX

前端 未结 10 1375
醉话见心
醉话见心 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条回答
  •  生来不讨喜
    2020-12-02 06:05

    Assuming you have created the data/db directory under bin after install.

    1. Start a terminal for your mongo server
    2. Go to /bin directory
    3. Run the command

      ./mongod

    4. Start a terminal for your mongo shell

    5. Go to /bin directory
    6. Run the command (make sure you put the name of the database)

      ./mongo test

提交回复
热议问题