Mongodb 安装错误汇总

Posted smallyi

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Mongodb 安装错误汇总相关的知识,希望对你有一定的参考价值。

  1. Failed to restart mongod.service: Unit mongod.service not found.

解决方法:

Most probably unit mongodb.service is masked. Use following command to unmask it.

sudo systemctl unmask mongodb

and re-run

sudo service mongod start

 

 1 [email protected]:~$ sudo service mongod restart
 2 Failed to restart mongod.service: Unit mongod.service not found.
 3 [email protected]:~$ ^C
 4 [email protected]:~$ sudo systemctl unmask mongodb
 5 Removed symlink /etc/systemd/system/mongodb.service.
 6 [email protected]:~$ sudo service mongod start
 7 [email protected]:~$ sudo service mongod status
 8 ● mongod.service - MongoDB Database Server
 9    Loaded: loaded (/lib/systemd/system/mongod.service; disabled; vendor preset: enabled)
10    Active: active (running) since Thu 2018-10-25 03:50:52 UTC; 5s ago
11      Docs: https://docs.mongodb.org/manual
12  Main PID: 6669 (mongod)
13     Tasks: 19
14    Memory: 37.9M
15       CPU: 85ms
16    CGroup: /system.slice/mongod.service
17            └─6669 /usr/bin/mongod --config /etc/mongod.conf
18 
19 Oct 25 03:50:52 homestead systemd[1]: Started MongoDB Database Server.
20 Oct 25 03:50:52 homestead mongod[6669]: 2018-10-25T03:50:52.045+0000 I CONTROL  [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 spe
21 lines 1-13/13 (END)

 

以上是关于Mongodb 安装错误汇总的主要内容,如果未能解决你的问题,请参考以下文章

ios - Heroku 和 MongoDb 上的自定义解析服务器错误 3080:JSON 文本没有以数组或对象开头,并且允许未设置片段的选项

Mongodb中经常出现的错误(汇总)child process failed, exited with error number

linux的centos系统安装MongoDB详细步骤(包括创建用户的各种操作及遇到的问题汇总)

linux的centos系统安装MongoDB详细步骤(包括创建用户的各种操作及遇到的问题汇总)

linux的centos系统安装MongoDB详细步骤(包括创建用户的各种操作及遇到的问题汇总)

如何实现mongodb中的sum汇总操作?