![]() This means that if you need to reboot your Droplet, MongoDB will start right back up. If everything is successful, you should see the output contain a PID of the newly started MongoDB process:īy default with this install method, MongoDB should start automatically when your Droplet is booted. ![]() TIP: At any time, to change to your home directory, simply execute `cd` Step 3 - Run the Install ScriptĮxecute the following from your home directory: Aptitude is updated so that new packages can be registered locally on the Droplet.A custom 10gen repository list file is created containing the location of the MongoDB binaries.The `apt-key` call registers the public key of the custom 10gen MongoDB aptitude repository.Here's an explanation of each line in the script: ![]() Copy the following into a new file named `mongo_install.bash` in your home directory:Īpt-key adv -keyserver -recv 7F0CEB10Įcho "deb dist 10gen" | tee -a /etc/apt//10gen.list The MongoDB install process is simple enough to be completed with a Bash script. :: It is recommended that you configure `ssh` and `sudo` like this Step 2 - Create the Install Script This tutorial should help you setup a virtual private server to use as a dedicated MongoDB server for a production application environment. MongoDB is a document database used commonly in modern web applications. You can use the search functionality at the top of the page to find a more recent version. ![]() If available, we strongly recommend using a guide written for the version of Ubuntu you are using. This guide might still be useful as a reference, but may not work on other Ubuntu releases. Reason: Ubuntu 12.04 reached end of life (EOL) on Apand no longer receives security patches or updates. Migrate the server data to a supported version.Upgrade from Ubuntu 14.04 to Ubuntu 16.04.If you are currently operate a server running Ubuntu 12.04, we highly recommend upgrading or migrating to a supported version of Ubuntu: This article covers a version of Ubuntu that is no longer supported.
0 Comments
Leave a Reply. |