Configuration of mongodb on linux:
Step 1:
Packages configuration:
Mongo-10gen-server
Mongo-10gen
Step 2:
Edit configuration packages
Create vi /etc/yum.repos.d/mongodb.repo
For 64-bit system
[mongodb]
name=MongoDB
Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
gpgcheck=0
enabled=1
for 32-bit system
[mongodb]
name=MongoDB
Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/i686/
gpgcheck=0
enabled=1
|
Step 3:
yum install mongo-10gen mongo-10gen-server
Step 4:
Add the below line in /etc/yum.conf file
#Vi /etc/yum.conf
exclude=monngo-10gen,mongo-10gen-server
Step 5:
Step 5:
Start mongo services
#service mongod start
Check services
Chkconfig mongod on
Step 6:
Stop services
#service mongod stop
Restart mongodb
#service mongod restart
No comments:
Post a Comment