Install MongoDB on CentOS 7

To install MongoDB on CentOS 7, create file

Add

Refer https://docs.mongodb.com/master/tutorial/install-mongodb-on-red-hat/

Now install MongoDB with

Enable MongoDB start on boot with

To start MongoDB, run

You can check status of MongoDB with

MongoDB