无法重新安装mongodb

时间:2018-05-16 17:16:59

标签: mongodb

我很难从头开始重新安装Mongodb。

我已经完成了以下链接中的所有步骤:

但是当我在安装后尝试运行mongo时,我收到以下错误:

●mongodb.service    已加载:错误(原因:参数无效)    活动:不活动(死机)

May 16 16:52:24 synctup-stage systemd[1]: mongodb.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.
May 16 16:54:07 synctup-stage systemd[1]: mongodb.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.
May 16 16:54:07 synctup-stage systemd[1]: mongodb.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.
May 16 16:54:07 synctup-stage systemd[1]: mongodb.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.
May 16 16:54:07 synctup-stage systemd[1]: mongodb.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.
May 16 16:55:45 synctup-stage systemd[1]: mongodb.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.
May 16 16:55:45 synctup-stage systemd[1]: mongodb.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.
May 16 16:55:45 synctup-stage systemd[1]: mongodb.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.
May 16 17:06:19 synctup-stage systemd[1]: mongodb.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.
May 16 17:06:19 synctup-stage systemd[1]: mongodb.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.

关于我可以看看修复此问题的任何建议???

谢谢!

我当前的mongodb.service文件如下所示:

[Unit]
Description=High-performance, schema-free document-oriented >database
After=network.target

[Service]
User=mongodb
ExecStart=/usr/bin/mongod --quiet --config /etc/mongod.conf

[Install]
WantedBy=multi-user.target

0 个答案:

没有答案