1) 安裝nodejsnode
wget https://nodejs.org/dist/v8.11.3/node-v8.11.3-linux-x64.tar.xzlinux
tar -xf node-v8.11.3-linux-x64.tar.xzmongodb
vi /etc/profilenpm
export NODE_HOME=/xxx/nodejs/node-v8.11.3-linux-x64
export PATH=$NODE_HOME/bin:$PATHbash
設置淘寶鏡像in ~/.bashrcurl
#alias for cnpm
alias cnpm="npm --registry=https://registry.npm.taobao.org --cache=$HOME/.npm/.cache/cnpm --disturl=https://npm.taobao.org/dist --userconfig=$HOME/.cnpmrc"rest
重啓機器,修改生效。v8
2) 安裝mangoget
mongodb:
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-red-hat/
sudo chkconfig mongod on
sudo service mongod start
sudo service mongod restart
mongo --host 127.0.0.1:27017
/var/log/mongodb/mongod.logejs