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]