Start MongoDB as daemon without writing log
Is there a remote (ssh) way to simulate:
mongod --fork --logpath /var/log/mongodb.log
without logging part? If I omit the logpath then mongod will complain.
I have it running on a RaspberryPi and I would like to disable registration to maximize the lifespan of the SD card.
+3
plus-
source
to share
1 answer
Redirect entry to /dev/null
instead of file:
mongod --fork --logpath /dev/null
+6
JohnnyHK
source
to share