How to start a mongodb service on mac OS X?

前端 未结 10 2038
一整个雨季
一整个雨季 2021-01-31 03:02

I have already installed Mongodb on my mac but the process is currently not running. How do I start the Mongodb service so that I can start using the commands?

10条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-31 03:40

    Use this line it will fix the issue.

    Execute this line in your terminal at the mongo bin path:

    export PATH=/bin:$PATH
    

    replace this with your path, for example:

    export PATH=/Application/Mongo/bin:$PATH
    

提交回复
热议问题