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

前端 未结 25 1549
误落风尘
误落风尘 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:19

    For those that run into this and end up on this answer, as I did, where they got this error during uninstall orupgrade and Ubuntu keeps failing to uninstall the previous because the service doesn't exist this one line will get you past that and allow the uninstall or upgrade to continue.

    sudo touch /lib/systemd/system/mongod.service
    

提交回复
热议问题