mongodb commands

mongo commands,

for backup:-

$ mongodump –db healyosdb –out /home/ec2-user/mongobackup/`date +”%m-%d-%y”`

mongo –version

install

wget https://repo.mongodb.org/yum/redhat/7/mongodb-org/3.0/x86_64/RPMS/mongodb-org-server-3.0.15-1.el7.x86_64.rpm

rpm -ivh mongodb-org-server-3.0.15-1.el7.x86_64.rpm

systemctl start mongod

Leave a Comment

Your email address will not be published. Required fields are marked *

To Resolve this issue at just 5$ from ServerExpert

https://serverexpert.io/

For Hosting please visit Hostingwebsite.io

You have Successfully Subscribed!

Open chat