April 2024
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  

Categories

April 2024
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  

Installs MongoDB based on CentOS 6.5

Installs MongoDB based on CentOS 6.5

1. Add the MongoDB installation source

vim /etc/yum.repos.d/mongodb-enterprise.repo

Write the following configuration items to the file

[Mongodb-enterprise]
name = MongoDB Enterprise Repository
baseurl = https://repo.mongodb.com/yum/redhat/$releasever/mongodb-enterprise/stable/$basearch/gpgcheck = 0
enabled = 1

2. Install MongoDB with yum

yum install mongodb-enterprise

3. Set the MongoDB process to boot
chkconfig mongod on

Detailed information:
1. Install mongodb-enterprise, will install the following packages
mongodb-enterprise-server, including Mongod process, configuration files and initialization scripts;
mongodb-enterprise-mongos, including mongos process;
mongodb-enterprise-shell, including mongo shell process;
MongoDB-Enterprise-tools, including mongoimport bsondump, mongodump, mongoexport, mongofiles , mongoimport, mongooplog, mongoperf, mongorestore, mongostat, and mongotop tools;
After 2.yun MongoDB configuration file is /etc/mongodb, initialization script /etc/rc.d/init.d/mongod;

3. Install other versions of MongoDB, such as installing version 2.6.1
yum install mongodb-enterprise-2.6.1

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>