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

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

    As per documentation:

    Run this command to reload the daemon:

    sudo systemctl daemon-reload
    

    After this you need to restart the mongod service:

    sudo systemctl start mongod
    

    To verify that MongoDB has started, run:

    sudo systemctl status mongod
    

    To ensure that MongoDB will start following a system reboot, run:

    sudo systemctl enable mongod
    

提交回复
热议问题