mongodb service is not starting up

前端 未结 21 685
野的像风
野的像风 2020-12-02 05:16

I\'ve installed the mongodb 2.0.3, using the mongodb-10gen debian package. Everything went well, except the service which is installed by default is not starting up when com

21条回答
  •  情深已故
    2020-12-02 05:36

    What helped me diagnose the issue was to run mongod and specify the /etc/mondgob.conf config file:

    mongod --config /etc/mongodb.conf
    

    That revealed that some options in /etc/mongdb.conf were "Unrecognized". I had commented out both options under security: and left alone only security: on one line, which caused the service to not start. This looks like a bug.

    security:
    #  authorization: enabled
    #  keyFile: /etc/ssl/mongo-keyfile
    

    ^^ error

    #security:
    #  authorization: enabled
    #  keyFile: /etc/ssl/mongo-keyfile
    

    ^^ correctly commented.

提交回复
热议问题