Affichage des articles dont le libellé est macos. Afficher tous les articles
Affichage des articles dont le libellé est macos. Afficher tous les articles

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

install nodejs latest release


Install nodejs latest release on MacOS

curl -sSL http://nodejs.org/dist/latest | grep pkg | sed -E 's/.*>(node.*pkg).*/\1/' | xargs -I '{}' curl --write-out %{url_effective} -L -O http://nodejs.org/dist/latest/'{}' | sed -E 's/.*\/(node.*pkg)/\1/' | xargs -I '{}' echo launch '{}'

Note : you have to launch the pkg file
Note : the pkg file will launch an UI


Install nodejs latest release on Linux 64bits

curl -sSL http://nodejs.org/dist/latest | grep linux | grep 64 | sed -E 's/.*>(node.*gz).*/\1/' | xargs -I '{}' curl --write-out %{filename_effective} -L -O http://nodejs.org/dist/latest/'{}' | xargs -I '{}' tar -xvzf '{}'