title: Install multiple versions of MongoDB on linux
body: <p>How can we setup multiple versions of MongoDB on Ubuntu 16.04?</p>
  
  <p>MongoDB 3.4.1 is already up and running on my system and wanted to setup MongoDB 2.6 for other application. Because our Application running on MongoDB 2.6 is having DB driver which is not compatible with MongoDB 3.4 hence wanted run both MongoDB version on same linux server.</p>
  
  <p>Tried to follow below link but couldn't succeed.</p>
  
  <ol>
  <li><a href="https://stackoverflow.com/questions/31042407/how-can-i-install-two-versions-of-mongodb-parallely-in-ubuntu-12-04">How can I install two versions of mongodb parallely in Ubuntu 12.04
  ?</a></li>
  <li><a href="https://stackoverflow.com/questions/18199383/multiple-versions-of-mongo">multiple versions of Mongo</a></li>
  <li><a href="https://stackoverflow.com/questions/15124610/multiple-instances-of-mongo-db-on-same-server">multiple instances of Mongo DB on same server</a></li>
  </ol>