B
B
billt2017-07-30 18:57:26
JavaScript
billt, 2017-07-30 18:57:26

How to start mongodb service on mac?

Hello, I installed mongodb via homebrew, then I ran this command:
mkdir -p /data/db
AND this
sudo chown $USER /data/db
AND then ran this command to start the service:

mongod --directoryperdb --dbpath /data/db --logpath /log/mongo.log --logappend --rest --install

Got this response:
Error parsing command line: unrecognised option '--install'
try 'mongod --help' for more information

I'm trying to do everything like in this tutorial:
https://www.youtube.com/watch?v=k_0ZzvHbNBQ&list=P...
How to create a service so that I can run on command:
net start MongoDB

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arman, 2017-07-30
@billt

sudo brew services start mongodb
view list of services
brew services list

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question