Install MongoDB on CentOS 7

To find latest MongoDB version, see

https://docs.mongodb.com/manual/release-notes/

To install MongoDB 3.6 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