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.
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
Post a Comment