MongoDB for Developers with Python Transcripts
Chapter: Deploying MongoDB in production (and playing it safe)
Lecture: Concept: Installing MongoDB for production
0:01 We saw that we can basically leverage the package manager on Ubuntu
0:04 to install MongoDB, but it won't work by default, we've got to add some things.
0:10 Now notice this link at the bottom, you shouldn't be typing in
0:12 at least not the first two lines at all,
0:16 you can just copy them from down there, right.
0:19 So go to the install on Ubuntu, or if you have a different distribution pick that one,
0:23 and it will show you how to do it with your package manager most likely,
0:26 so here we are going to add the MongoDb key,
0:29 so we trust the list, the file list we're going to set up,
0:33 then we're going to basically set up this mongodb.org file list here
0:37 and then in order to actually have the stuff in the list available
0:41 we need to run a quick update, so it pulls it down
0:44 and then we can say apt install mongodb-org to install everything
0:47 or you saw that there's subpackages you can choose
0:51 we're going to manage the server via the just editing etc/mongod.conf
0:57 and then make changes, restart the service
1:00 and then it will just pick up those changes which is really nice.
1:04 Of course, this doesn't mean it's running,
1:06 it's just ready to run next time you reboot the server
1:08 so you just say service mongod start and you'll be golden.