Installing MongoDB
|
Mongo DB version 4.2.x to 5.x.x are supported by Stream |
Download the last version of the following Mongo DB 5.x RPMs from the MongoDB web site:
-
mongodb-org -
mongodb-org-mongos -
mongodb-org-server -
mongodb-org-shell -
mongodb-org-tools
Download the last version of the mongosh RPM from the MongoDB GitHub.
-
mongodb-mongosh
Upload the downloaded RPMs through SCP on the server under /root;
Using an account with privileges, install the RPMs using 'yum'. For example, to install MongoDB version 5.0.1, run the following command from the folder containing the RPMs:
$ yum install mongodb-org* $ yum install mongodb-mongosh
Enable the service at startup with the following command:
$ systemctl enable mongod
Start the mongod service with the following command:
$ systemctl start mongod
Verify that you can connect to the Mongo instance by running the mongo shell:
$ mongo
|
You can disconnect from the shell with ^D |