dimanche, décembre 28, 2014

install MongoDB latest release on MacOS



install MongoDB latest version on MacOS 64Bits

curl -L http://downloads.mongodb.org/osx/mongodb-osx-x86_64-latest.tgz -o mongodb-osx-latest.tgz && rm -Rf mongodb && sudo rm -Rf /usr/local/bin/mongo* && sudo rm -Rf /usr/local/bin/bsondump && mkdir mongodb && tar -xvzf mongodb-osx-latest.tgz --strip-components=1 -C mongodb && for f in $(pwd)/mongodb/bin/*; do sudo ln -s $f /usr/local/bin/$(basename $f); done

Note : will ask sudo password
Note : see urls here http://www.mongodb.org/dl/osx
Note : to run it
mkdir -p $(pwd)/mongodb/data/db && mongod --dbpath $(pwd)/mongodb/data/db

install MongoDB latest version on MacOS 32Bits

curl -L http://downloads.mongodb.org/osx/mongodb-osx-i386-latest.tgz -o mongodb-osx-latest.tgz && rm -Rf mongodb && sudo rm -Rf /usr/local/bin/mongo* && sudo rm -Rf /usr/local/bin/bsondump && mkdir mongodb && tar -xvzf mongodb-osx-latest.tgz --strip-components=1 -C mongodb && for f in $(pwd)/mongodb/bin/*; do sudo ln -s $f /usr/local/bin/$(basename $f); done

Note : will ask sudo password
Note : see urls here http://www.mongodb.org/dl/osx
Note : to run it
mkdir -p $(pwd)/mongodb/data/db && mongod --dbpath $(pwd)/mongodb/data/db

Aucun commentaire: