CentOS 6.5 install MongoDB 2.6 (multiple yum data sources) and centosmongodb
Next we will install the latest MongoDB 2.6.5 on CentOS 6.5 x64.
There are a total of five packages in the MongoDB v2.6.5 software warehouse:
1) mongodb-org
This package is a metadata package. It can automatically install the following four package components.
2) mongodb-org-server
This package contains the mongod daemon and related configuration and initialization scripts.
3) mongodb-org-mongos
This package contains the mongos daemon.
4) mongodb-org-shell
This package contains the mongo shell environment.
5) mongodb-org-tools
This package contains the following MongoDB tools: mongoimport, bsondump, mongodump, mongoexport, program files, mongoimport, mongooplog, mongoperf, mongorestore, mongostat, and mongotop.
Control Script: The mongodb-org package contains various control scripts, including the initialization script/etc/rc. d/init. d/mongod.
Use the/etc/mongod. conf configuration file to configure MongoDB.
MongoDB 2.6.5 no longer has mongos control scripts. Mongos processes are only used for sharding scenarios. You can use mongod to initialize the script to drive the mongos control script.
To install the latest 64-bit MongoDB 2.6.5, follow these steps:
1. Create a mongodb. repo File
Create the file mongodb. repo in the/etc/yum. repos. d/directory, which contains the configuration information of the MongoDB repository. The content is as follows:
[mongodb]name=MongoDB Repositorybaseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/gpgcheck=0enabled=1
Note:
Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds'
Data sources access the network too slowly in China. You can refer to the following data sources:
Http://mongo.a.mesa.io/repo/redhat/ OS /x86_64/
Http://downloads-distro.mongodb.org/repo/redhat/ OS /x86_64/
Http://repo.mongodb.org/repo/redhat/ OS /x86_64
2. Execute the installation command
$ Sudo yum install mongodb-org
3. Configure SELinux Firewall
Enable port 27017
4. Start MongoDB
$ Sudo service producer D start
5. Verify MongoDB
You can check the log file/var/log/mongodb/mongod. log to determine whether the mongod process is running normally.
You can also run the following command:
$ Sudo chkconfig mongod on
To stop MongoDB, run:
$ Sudo service producer D stop
To restart MongoDB, run:
$ Sudo service producer D restart
How does centos65 install JDK using yum? Using yum Security
Centos6.5 comes with jdk! If not, yum installs openjdk.
If you want to install another jdk, you can download the rpm package from the oracle official website!
Centos 65 yum installation g ++ failure prompt error tips
Yum install gcc-c ++