mongodb service is not starting up

前端 未结 21 687
野的像风
野的像风 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:37

    Fixed!

    The reason was the dbpath variable in /etc/mongodb.conf. Previously, I was using mongodb 1.8, where the default value for dbpath was /data/db. The upstart job mongodb(which comes with mongodb-10gen package) invokes the mongod with --config /etc/mongodb.conf option.

    As a solution, I only had to change the owner of the /data/db directory recursively.

提交回复
热议问题