mongodb service is not starting up

前端 未结 21 754
野的像风
野的像风 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条回答
  •  猫巷女王i
    2020-12-02 05:36

    Remember that when you restart the database by removing .lock files by force, the data might get corrupted. Your server shouldn't be considered "healthy" if you restarted the server that way.

    To amend the situation, either run

    mongod --repair
    

    or

    > db.repairDatabase();    
    

    in the mongo shell to bring your database back to "healthy" state.

提交回复
热议问题