...
- Stop running services
- Install MongoDB 3.2
- Provision MongoDB 3.2
- Convert to Wired Tiger
- Restore services
...
Code Block |
---|
[root@opmantek ~]# yum install mongodb-org |
Provision MongoDB 3.2
Check what kinds of MongoDB configuration files are in /etc
Code Block |
---|
[root@opmantek etc]# ls -l | grep mongo
-rw-r--r-- 1 root root 1564 2015-09-11 10:00 mongod.conf
-rw-r--r-- 1 root root 768 2017-02-02 02:07 mongod.conf.rpmnew |
If there is one called mongodb.conf it is no longer necessary. Please move this to /root to avoid any future confusion.
Make a backup of the old mondgod.conf and copy the new rpm version over it.
Code Block |
---|
[root@opmantek etc]# cp mongod.conf mongod.conf.backup
[root@opmantek etc]# cp mongod.conf.rpmnew mongod.conf |
Now make the following changes to mongod.conf
Uncomment wiredTiger
Change the dbPath to /data/mongodb