MongoDB 3.2 Bash Install Script

  • 2

MongoDB 3.2 Bash Install Script

Get Social!

The below script installs MongoDB 3.2.x on Debian. Copy and paste the script into a file called install_mongo.sh and execute it as root.

Then connect to the local MongoDB instance

 


2 Comments

mb

10-May-2017 at 8:41 am

why line 18? – rm -rf /var/lib/mongodb/*

You cant connect to Mongo after running this line, the service fails to start?!?!? Or am I missing something

    James Coyle

    23-May-2017 at 12:42 pm

    It’s so that a new admin database can be created, removing everything existing.

Leave a Reply