# Short-Description: Mongodb startup script The file should have the following content: In order for MongoDB to be launched on boot, we’ll need to create an init script.įirst, create the file using the command: Having done the update, we now install the MongoDB server and its command line tools.Īpt-get install -y -allow-unauthenticated mongodb-org Having added the new repository, we’ll next need to update the list of packages. Now we’ll actually add the MongoDB repositories to your sources.list file so apt-get can retrieve the package list and install Mongo.Įcho "deb trusty/mongodb-org/3.2 multiverse" | sudo tee /etc/apt//mongodb-org-3.2.list We’ll fetch the GPG key for their repositories so the packages can be verified on installation.Īpt-key adv -keyserver hkp://:80 -recv EA312927 MongoDB is shipped in package repositories for a variety of distributions and versions. Perform this step regularly on this server to keep it secure and performant. Not only does this prevent download errors later, but it also applies all available bugfixes and security patches. ![]() ![]() Begin by updating your packages and package cache. When we’re done, MongoDB will be running and ready to integrate into your app or service.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |