What is the correct way to start a mongod service on linux / OS X?

前端 未结 11 1793
予麋鹿
予麋鹿 2020-11-30 16:39

I\'ve installed mongodb and have been able to run it, work with it, do simple DB read / write type stuff. Now I\'m trying to set up my Mac to run mongod as a service.

11条回答
  •  甜味超标
    2020-11-30 17:09

    mongod wasn't working to start the daemon for me but after I ran the following, it started working:

    'mongod --fork --logpath /var/log/mongodb.log'
    

    (from here: https://docs.mongodb.com/manual/tutorial/manage-mongodb-processes/)

提交回复
热议问题