Last active
June 27, 2018 19:12
-
-
Save mamun67/6b8a12e07184a00e543145d524e97bbd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Check the below url | |
| #https://docs.mongodb.com/tutorials/install-mongodb-on-amazon/ | |
| #for ubuntu https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/ | |
| Step 1: Configure the package management system (yum). | |
| Create a /etc/yum.repos.d/mongodb-org-3.6.repo file so that you can install MongoDB directly, using yum. | |
| For MongoDB 3.6 | |
| Use the following repository file: | |
| ############################################################################################# | |
| [mongodb-org-3.6] | |
| name=MongoDB Repository | |
| baseurl=https://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/3.6/x86_64/ | |
| gpgcheck=1 | |
| enabled=1 | |
| gpgkey=https://www.mongodb.org/static/pgp/server-3.6.asc | |
| ###########################################End of repo file################################# | |
| Step 2: Install the MongoDB packages. | |
| To install the latest stable version of MongoDB, issue the following command: | |
| sudo yum install -y mongodb-org | |
| To install a specific release of MongoDB, specify each component package individually and append the version number to the package name, as in the following example: | |
| sudo yum install -y mongodb-org-3.6.0 mongodb-org-server-3.6.0 mongodb-org-shell-3.6.0 mongodb-org-mongos-3.6.0 mongodb-org-tools-3.6.0 | |
| You can specify any available version of MongoDB. However yum will upgrade the packages when a newer version becomes available. To prevent unintended upgrades, pin the package. To pin a package, add the following exclude directive to your /etc/yum.conf file: | |
| exclude=mongodb-org,mongodb-org-server,mongodb-org-shell,mongodb-org-mongos,mongodb-org-tools | |
| ###################################################################################### | |
| Step 3: To start mongoDB | |
| mongod --dbpath path | |
| #################################################################################### | |
| to run bower as sudo | |
| sudo bower install --allow-root | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment