MongoDB for Developers with Python Transcripts
Chapter: Setting up your computer to follow along
Lecture: Concept: Setting up MongoDB on macOS
0:01 We're going to use homebrew, if you don't like homebrew you can actually download a tarball and unzip it and set up all the stuff
0:08 but homebrew is much better on a couple of levels, so make sure you have homebrew and that you update it,
0:15 and then to install, we're just going to install homebrew and then we just brew install MongoDB, wait about 20 seconds for it to do its magic,
0:23 we're going to start up MongoDB, there's two ways to do that we could say brew services start monogodb
0:28 and that will actually register it as a system service that starts every time you log in;
0:33 if you don't want to do that, you don't want to start it this way, it's fine you can say mongodb--config and point at the config file.
0:39 If you want to make any changes, well, there's the config file you can just edit that with whatever editor you like,
0:44 and you can change the security, you can change the ports, whatever you want to change about MongoDB
0:49 just change this file, and stop and then start the service, or just cancel out running this mongod command, and then run it again.
0:57 Final thing is, if you brew service start mongodb and it's going to continue to autostart, if for some reason you want it to stop,
1:03 I believe it makes a file, a plist file, and it puts it in your home directory
1:08 for your user account in /library/launch/agents/ something involving mongodb, so you can just delete that file I believe and that will stop it.