Failed to start mongod.service: Unit mongod.service not found

前端 未结 25 1576
误落风尘
误落风尘 2020-12-07 14:43

I follow all the steps mention in MongoDB installation documents for Ubuntu 16.04.

Steps 1:

sudo apt-key adv --keyserv         


        
25条回答
  •  渐次进展
    2020-12-07 15:13

    Failed to start mongod.service: Unit mongod.service not found

    If you are following the official doc and are coming across with the error above that means mongod.service is not enabled yet on you machine (I am talking about Ubuntu 16.04). You need to do that using following command

    sudo systemctl enable mongod.service
    

    Now you can start mongodb using the following command

    sudo service mongod start
    

提交回复
热议问题