Install multiple versions of MongoDB on linux -


how can setup multiple versions of mongodb on ubuntu 16.04?

mongodb 3.4.1 , running on system , wanted setup mongodb 2.6 other application. because our application running on mongodb 2.6 having db driver not compatible mongodb 3.4 hence wanted run both mongodb version on same linux server.

tried follow below link couldn't succeed.

  1. how can install 2 versions of mongodb parallely in ubuntu 12.04 ?
  2. multiple versions of mongo
  3. multiple instances of mongo db on same server

to that, must have both versions of mongodb available on system.

for instance, let's have downloaded 2.6 version binaries /opt/mongo/26/ , other version's @ /opt/mongo/34/, run both versions of database daemon on different ports:

/opt/mongo/26/mongod --dbpath /data/26/ --port 27017 /opt/mongo/34/mongod --dbpath /data/34/ --port 28018 

Comments

Popular posts from this blog

cookies - Yii2 Advanced - Share session between frontend and mainsite (duplicate of frontend for www) -

angular - password and confirm password field validation angular2 reactive forms -

php - Permission denied. Laravel linux server -