Stop: Unknown instance mongodb (Ubuntu)

前端 未结 5 2184
慢半拍i
慢半拍i 2020-12-14 16:06

I am new to Mongodb. When I run the following command:

sudo service mongodb start

It shows me \"mongodb start/running, process 3566

5条回答
  •  猫巷女王i
    2020-12-14 16:29

    I just ran into this. Chances are the issue is in your conf file (obviously, since you reinstalled the seeded)

    In the mongodb.conf do not set fork = true if calling it as a service. This will prevent the service call from being able to access it with service mongodb.conf status/stop/restart.

    Removing a fork=True line, however, will alleviate the issue.

    See comments; use the other solution even though this one is accepted.

提交回复
热议问题