# A hyperlink, or will report "command not found" when the Node sudo sudo LN -s / usr / local / bin / the Node / usr / bin / the Node sudo LN -s / usr / local / lib / the Node / usr / lib / the Node sudo LN -s / usr / local / bin / npm / usr / bin / npm
# Into the folder / usr / local, download the source code mongodb cd / usr / local wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.4.9.tgz
# Extract the installation package, rename folder MongoDB the tar-Linux-x86_64-2.4.9.tgz zxvf MongoDB MongoDB MongoDB-Linux-x86_64-2.4.9 Music Videos
# Build var folder mongodb folder, and folders data are established for storing data, logs for storing log mkdir / var / mongodb mkdir / var / mongodb / data mkdir / var / mongodb / logs
# Open rc.local file, add CentOS boot entry vim /etc/rc.d/rc.local
# Mongodb start command will be appended to this document, let mongodb boot from the start / usr / local / mongodb / bin / mongod --dbpath = / var / mongodb / data --logpath /var/mongodb/logs/log.log - fork