1) 安装nodejs
wget https://nodejs.org/dist/v8.11.3/node-v8.11.3-linux-x64.tar.xz
tar -xf node-v8.11.3-linux-x64.tar.xz
vi /etc/profile
export NODE_HOME=/xxx/nodejs/node-v8.11.3-linux-x64
export PATH=$NODE_HOME/bin:$PATH
设置淘宝镜像in ~/.bashrc
#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"
重启机器,修改生效。
2) 安装mango
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.log
原文地址:https://www.cnblogs.com/itech/p/9485073.html
时间: 2024-10-09 15:44:50