Bước 1: Xóa version cũ:
# yum erase mongodb
Bước 2: cài đặt từ fedora yum repository
# yum –disablerepo=* –enablerepo=fedora,updates install mongodb mongodb-server
Bước 3: start mongod (mongodb daemon)
# systemctl start mongod.service
hay
# service mongod start
Bước 4: Kiểm tra mongo
# systemctl status mongod.service
# tail /var/log/mongodb/mongodb.log
# nmap -p27017 localhost
Bước 5: Cấu hình cho mongo start khi boot
# systemctl enable mongod.service