Install
sudo yum install mongodb-server mongodb
Start
sudo service mongod start
done!
Optional: some more insight
Configuration
File is at:
/etc/mongodb.conf
Interesting options
# disallow table scans; if we do, I'd fix our code:
notablescan = true
# enable HTTP interface
nohttpinterface = false
# Verbose logging output.
verbose = true
Where is the stuff?
dbpath=/var/lib/mongodb
pidfilepath=/var/run/mongodb/mongodb.pid
logpath=/var/log/mongodb/mongodb.log
Local console: http://localhost:28017/
Have MongoDB start as a service
systemctl enable mongod.service