MongoDB
27. Mai 2021 / Stephan Post
Run MongoDB
To run MongoDB (i.e. the mongod process) as a macOS service, issue the following:
brew services start mongodb-community@4.2To run MongoDB manually as a background process, issue the following:
mongod --config /usr/local/etc/mongod.conf --forkBoth methods use the /usr/local/etc/mongod.conf file created during the install. You can add your own MongoDB configuration options to this file as well.
To verify that MongoDB is running, search for mongod in your running processes:
ps aux | grep -v grep | grep mongodYou can also view the log file to see the current status of your mongod process: /usr/local/var/log/mongodb/mongo.log.
DRAFT