How to resolve error :dbpath (/data/db/) does not exist permanently in MongoDB

前端 未结 5 370
旧巷少年郎
旧巷少年郎 2021-01-30 13:04

I have installed mongodb in my Ubuntu 10.04.

I know that when it comes to start the mongodb server with the command \"mongod\",then it expects /data/db

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-30 13:33

    Change the user of the new data directory:

    chown mongodb [rute_directory]

    And try another time to start the mongo service

    service mongodb start

    I solve the same problem with this.

提交回复
热议问题