Ubuntu Install MongoDB error [INITCTL: Unknown task: Mongod]

Source: Internet
Author: User
Tags install mongodb

In fact, the official has a detailed installation of the tutorial, if strictly according to the official steps will not appear here the error.

Initctl: Unknown Task: Mongod This error is the fourth step in the installation process is less "sudo", that is, this step

sudo apt-get install-y mongodb-org

During the installation process, because it is already a root user, it omits sudo, causing initctl: Unknown task: Mongod error, MongoDB service failed to start during installation

Workaround, reinstall it after uninstalling.

Unloading

sudo apt-get purge mongodb-org*

Installation

sudo apt-get install-y mongodb-org

The copyright of this article is owned by the author and the blog Park, the source website: http://www.cnblogs.com/code-boy/welcome you reprint, but without the author's consent, reprinted article must be in the article page obvious location to the author and the original text connection, otherwise reserves the right to pursue legal responsibility.

Ubuntu Install MongoDB error [INITCTL: Unknown task: Mongod]

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.