Upgrading mongodb has no effect and still shows the old version

后端 未结 7 1570
说谎
说谎 2020-12-29 01:51

Following are the commands which I used to upgrade my mongodb version from 2.6.9 to latest, but its still showing me the previous version. Let me know what I am doing wrong

7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-29 02:17

    Thank. I action step by step this is done on ubuntu 14.04 LTS

    Download tar from mongodb website as per your destribution from : https://www.mongodb.org/downloads Untar downloaded file.

    tar -zxvf {mongo-tar-file}.tgz

    Stop mongod service.

    sudo service mongod stop

    Replace binaries from your tar/bin to /usr/bin.

    cd {your-extracted-folder}/bin

    sudo mv -f * /usr/bin/

    Start mongod service.

    sudo service mongod start

提交回复
热议问题