MongoDB Service Will Not Start After Initial Setup

前端 未结 11 1768
夕颜
夕颜 2021-01-31 12:11

I am running Fedora 20 and installed MongoDB per the Red Hat installation guide on the official documentation. I was able to run the mongod daemon as a service with

11条回答
  •  长发绾君心
    2021-01-31 12:16

    I just experience a similar problem on ubuntu. Encountered nearly every ERROR tips, like

    child process failed, exited with error number 1
    

    orchild process failed, exited with error number 100

    or [signalProcessingThread] got signal 2 (Interrupt: 2), will terminate after current cmd ends

    For many times I remove the Mongodb and try to install again, but the problem remains....

    Finally I came to this way: Backup your data first, then remove Mongodb with

    #sudo apk-get autoremove mongodb-org
    

    Find out all the files related with mongodb:

    /#find -name mongo*
    

    Delete them all with "rm" or "rmdir", including the packages in the /var/cache/... and everthing.

    Then repeat the installation as the first time you did :

    #echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
    #sudo apt-get update
    #sudo apt-get install -y mongodb-org
    

    It will run again.

提交回复
热议问题