码迷,mamicode.com
首页 > 数据库 > 详细

Mongodb 安装错误汇总

时间:2018-10-25 14:05:39      阅读:624      评论:0      收藏:0      [点我收藏+]

标签:lib   size   mongodb   vendor   load   stat   mat   enable   usr   

  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 vagrant@homestead:~$ sudo service mongod restart
 2 Failed to restart mongod.service: Unit mongod.service not found.
 3 vagrant@homestead:~$ ^C
 4 vagrant@homestead:~$ sudo systemctl unmask mongodb
 5 Removed symlink /etc/systemd/system/mongodb.service.
 6 vagrant@homestead:~$ sudo service mongod start
 7 vagrant@homestead:~$ 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 安装错误汇总

标签:lib   size   mongodb   vendor   load   stat   mat   enable   usr   

原文地址:https://www.cnblogs.com/smallyi/p/9848995.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!