Install MongoDB
| Mongo DB version 7.0 to 8.0 are supported by Horizon |
-
RHEL
-
Debian
Download the latest version of the following Mongo DB 8.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, run the following command from the folder containing the RPMs:
$ yum install mongodb-org* $ yum install mongodb-mongosh
Download the latest version of the following Mongo DB 8.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 DEB from the MongoDB GitHub.
-
mongodb-mongosh
Upload the downloaded DEB through SCP on the server under /root.
Using an account with privileges, install the DEBs using 'apt'. For example, to install MongoDB, run the following command from the folder containing the DEBs:
$ apt install mongodb-org $ apt 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:
$ mongosh
| You can disconnect from the shell with ^D |