Ubuntu 16.04 LTS 下MongoDB 安装与配置(3)

linuxidc@linuxidc.com ~ $ systemctl status mongodb
● mongodb.service
  Loaded: not-found (Reason: No such file or directory)
  Active: inactive (dead)
linuxidc@linuxidc.com ~ $ sudo systemctl status mongod
● mongod.service - High-performance, schema-free document-oriented database
  Loaded: loaded (/lib/systemd/system/mongod.service; disabled; vendor preset: enabled)
  Active: active (running) since Thu 2018-01-18 11:43:16 CST; 2h 13min ago
    Docs: https://docs.mongodb.org/manual
 Main PID: 13494 (mongod)
  CGroup: /system.slice/mongod.service
          └─13494 /usr/bin/mongod --quiet --config /etc/mongod.conf

Jan 18 11:43:16 linuxidc.com systemd[1]: Started High-performance, schema-free document-oriented database.
Jan 18 13:56:35 linuxidc.com systemd[1]: Started High-performance, schema-free document-oriented database.

开启开机启动

linuxidc@linuxidc.com ~ $ sudo systemctl enable mongod
Created symlink from /etc/systemd/system/multi-user.target.wants/mongod.service to /lib/systemd/system/mongod.service.
linuxidc@linuxidc.com ~ $

更多MongoDB相关教程见以下内容

MongoDB文档、集合、数据库简介 

MongoDB 3分片部署及故障模拟验证 

Linux CentOS 6.5 yum安装MongoDB 

CentOS 7 yum方式快速安装MongoDB 

MongoDB的查询操作 

在 Azure 虚拟机上快速搭建 MongoDB 集群 

MongoDB复制集原理 

MongoDB 3.4 远程连接认证失败 

Ubuntu 16.04中安装MongoDB3.4数据库系统 

MongoDB权威指南第2版PDF完整带书签目录 下载见

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/c62a1f8186f36ce010cad7b273fdbf0a.html