Mongodb不是在ubuntu中启动 [英] Mongodb is not starting in ubuntu

查看:64
本文介绍了Mongodb不是在ubuntu中启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装后,我在mongodb上遇到了一个奇怪的问题,它以一条消息结尾

I am having a weird problem with mongodb after installation it is ending with a message

invoke-rc.d: unknown initscript, /etc/init.d/mongodb not found.
dpkg: error processing mongodb-10gen (--configure):

这里出了什么问题,我遵循了此处给出的步骤: http://www.mongodb.org/display/DOCS/Ubuntu+and+Debian+packages

What is wrong here I followed the steps given here: http://www.mongodb.org/display/DOCS/Ubuntu+and+Debian+packages

推荐答案

问题是您试图安装为Upstart初始化服务打包的版本,但是Debian Squeeze默认仍使用SysV初始化.

The issue is that you are trying to install a version packaged for Upstart init services, but Debian Squeeze still uses SysV init by default.

在安装文档中有关于此的注释: http://docs. mongodb.org/manual/tutorial/install-mongodb-on-debian-or-ubuntu-linux/#installing-mongodb

There is a note on this in the install docs: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-debian-or-ubuntu-linux/#installing-mongodb

如果您使用的是使用SysV样式初始化过程的Debian或Ubuntu,请使用以下行:

If you are using Debian or Ubuntu that uses SysV style init process, use the following line:

deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen

这篇关于Mongodb不是在ubuntu中启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆