What is the difference in the way mongodb starts?

Mode 1: mongod Command
Mode 2: brew services start mongodb Command start

what"s the difference between the two ways of starting? why are there two ways?

Feb.27,2021

makes no difference, the instruction to start the mongo server is mongod. Brew simply encapsulates it, which can be understood as service, on linux

Menu