Mongodb is not starting in ubuntu

前端 未结 2 1091
甜味超标
甜味超标 2021-01-05 11:07

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         


        
2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-05 11:29

    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.

    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

    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
    

提交回复
热议问题