How to install earlier version of mongodb with homebrew?

后端 未结 7 693
一整个雨季
一整个雨季 2020-12-22 20:07

I\'m on osx6.8 and need to install an earlier version of Mongodb, how do I install an earlier version with HomeBrew? The below didn\'t work :(

dream-2:app2         


        
7条回答
  •  隐瞒了意图╮
    2020-12-22 20:41

    curl -O https://fastdl.mongodb.org/osx/mongodb-osx-x86_64-3.2.12.tgz
    tar -zxvf mongodb-osx-x86_64-3.2.12.tgz
    mkdir -p mongodb
    cp -R -n mongodb-osx-x86_64-3.2.12/ mongodb
    export PATH=/bin:$PATH #path to the dir created in step 3
    mkdir -p /data/db
    sudo chown -R $(whoami) /data/
    mongod
    

提交回复
热议问题