In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Configure system source cat / etc/yum.repos.d/mongodb-org-4.2.repo [mongodb-org-4.2] name=MongoDB Repositorybaseurl= https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.2/x86_64/gpgcheck=1enabled=1gpgkey=https://www.mongodb.org/static/pgp/server-4.2.asc install yum install-y mongodb-orgsystemctl start mongod.service configure user use admindb.createUser ({user: "root", pwd: "123456" Roles: ["root"]}) use testdb.createUser ({user: "admin", pwd: "123456", roles: ["dbOwner"]}) modify the configuration file / etc/mongod.conf# mongod.conf# for documentation of all options See:# http://docs.mongodb.org/manual/reference/configuration-options/# where to write logging data.systemLog: destination: file logAppend: true path: / var/log/mongodb/mongod.log# Where and how to store data.storage: dbPath: / data/mongo journal: enabled: true# engine:# wiredTiger:# how the process runsprocessManagement: fork: true# fork and run in background pidFilePath: / var/run/mongodb/mongod.pid # location of pidfile timeZoneInfo : / usr/share/zoneinfo# network interfacesnet: port: 27017 bindIp: 0.0.0.0 # Enter 0.0.0.0 :: to bind to all IPv4 and IPv6 addresses or, alternatively, use the net.bindIpAll setting.security: authorization: "enabled" # operationProfiling:#replication:#sharding:## Enterprise-Only Options#auditLog:#snmp:
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.