How to install MongoDB on Fedora 29 / Fedora 28?

0
496
MongoDB
MongoDB

Currently, NoSQL Database managers are being widely used by developers. Since it has many advantages and their projects are the most open source. And MongoDB is one of the most popular managers. So, this article is about how to install MongoDB in Fedora 29.

MongoDB allows your teams to easily organize, use and enrich data – in real time, anywhere. MongoDB is a NoSQL and document-oriented database manager. In short, instead of saving the data in the record as the SQL database, it saves them in documents with BSON format which is a binary representation of JSON.

In the world of unrelated SQL database MongoDB is perhaps the most popular, however, it can be used by very different applications that require a semi-structured data collection. On the other hand, its use in transactional systems is not recommended as MongoDB does not support transactions.

That’s why I’m going to teach you how to install MongoDB on the latest stable version of Fedora, Fedora 29.

Install MongoDB on Fedora 29

There are several ways to install MongoDB. First, you can download the packages individually and then install them from the console. It is not complicated, but there is a problem, when there is an update of the program, you will have to repeat the process.

On the other hand, you can add the MongoDB repository and install it via DNF. The main advantage of this method is that when there is an update, it will be downloaded along with the system updates.

So, I will choose the second option.

First, create a file to add the repository:

And add the following:

1.- Adding the MongoDB repository
1.- Adding the MongoDB repository

Press CTRL + X and say yes to save the file.

With this the MongoDB repository is added, now you can install it without problems.

2.- Install MongoDB from the terminal
2.- Install MongoDB from the terminal

Now, it is installed. However, it is a good idea to enable the service. In addition, you have to start the service too.

3.- Enabling the MongoDB service
3.- Enabling the MongoDB service

Finally, check the service status:

4.- MongoDB is running
4.- MongoDB is running

Checking the installation

To test the installation, check the installed version of MongoDB.

Checking the installation
5.- Checking the installation

Now access to the console:

6.- Using MongoDB
6.- Using MongoDB

As you can see, MongoDB is correctly installed.

Conclusion

MongoDB is a solution that is increasingly being taken into account by many developers worldwide. Its installation in Fedora 29 and Fedora 28 is relatively simple.

Please share this article with your friends.

 

 

Spread the love
  • 9
    Shares

PS. If you like this post please share it with your friends on the social networks using the buttons above.Thanks.

LEAVE A REPLY

Please enter your comment!
Please enter your name here