[英]Mongodb 4: Failed to start mongod.service: Unit mongod.service not found
I am trying to install mongodb 4 on Ubuntu 15.10 but its giving me this error when I start mongod: 我正在尝试在Ubuntu 15.10上安装mongodb 4,但是当我启动mongod时,它给了我这个错误:
Failed to start mongod.service: Unit mongod.service not found
I followed this official installation guide: 我遵循了此官方安装指南:
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/ https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
There is no official installation instructions for Ubuntu 15.10 没有适用于Ubuntu 15.10的正式安装说明
I was successfully able to install on Ubuntu 16 but I am getting issues on Ubuntu 15.10. 我可以在Ubuntu 16上成功安装,但是在Ubuntu 15.10上却遇到问题。
Since ubuntu 15 isn't officially supported, you might have installed either the version for ubuntu 14 or 16. 由于ubuntu 15不受官方支持,因此您可能已经安装了ubuntu 14或16版本。
Ubuntu possibly upgraded the init system to upstart/systemd (around v15). Ubuntu可能会将init系统升级到upstart / systemd(大约v15)。 It's possible that the mongo release for ubuntu 14 varies as in it's packaged for a different init system.
ubuntu 14的mongo版本可能会有所不同,因为它针对不同的init系统进行了打包。
You could write your own init script and install it into /etc/init.d
. 您可以编写自己的初始化脚本并将其安装到
/etc/init.d
。 Alternatively using process control systems like supervisor
. 或者使用过程控制系统,如
supervisor
。
Your other option (probably better for security) is to get a new server and migrate there. 您的另一种选择(可能在安全性方面可能更好)是获取新服务器并在那里迁移。 It could be potentially done without downtime.
可以在不停机的情况下完成此操作。
If Ubuntu 16 isn't working for you, and you need to go back in time to an earlier version, I would choose the previous Long Term Support version, so the last 14.x rather than 15.x. 如果Ubuntu 16不适用于您,并且您需要及时回到较早的版本,我会选择以前的长期支持版本,因此选择最后的14.x而不是15.x。
You are correct in using Mongo 3.6 with Meteor, there are likely to be compatibility issues with 4.0 您在将Mongo 3.6与Meteor结合使用时是正确的,4.0可能存在兼容性问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.