CENTOS6 7 Yum Install MongoDB 3.6

Source: Internet
Author: User
Tags install mongodb mongodb yum install mongodb

Configuring the Yum source for MongoDB
# 编辑文件vim /etc/yum.repos.d/mongodb-org-3.6.repo # 添加以下内容[mongodb-org-3.6]name=MongoDB Repositorybaseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.6/x86_64/gpgcheck=1enabled=1gpgkey=https://www.mongodb.org/static/pgp/server-3.6.asc
Installing MongoDB
清除 安装源 yum clean all
yum install -y mongodb-org
Related actions
# 启动systemctl start mongod.service# 停止systemctl stop mongod.service# 重启systemctl restart mongod.service
Editing a configuration file
# Edit Default configuration file vim/etc/mongod.conf# Data Storage locationstorage: dbpath:/var/lib/mongo journal:  Enabled: true# engine:# mmapv1:< Span class= "hljs-comment" ># wiredtiger:# network-related configuration net: port: 27017 # default port bindip: 0.0. 0.0 # monitoring IP configuration, open remote connection can comment the bank or modify the IP to 0.0.0.0# whether to turn on the rights validation security: authorization:enabled       

 

CENTOS6 7 Yum Install MongoDB 3.6

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.