1、安装git
yum install git
2、安装 gcc编译net命令:安装要用npm,前提安装node
npm install gcc Linux安装目录src cd /usr/local/src
3、安装wget
yum install wget
4、安装node多版本管理器nvm
git clone https://github.com/cnpm/nvm.git --克隆nvm到本机,目录在/usr/src/
cd nvm/
./install.sh --为nvm做准备
source ~/.bash_profile --为nvm做准备
5、安装wget
yum install wget --安装wget
https://github.com/cnpm/nvm/archive/v0.23.0.tar.gz
wget https://github.com/cnpm/nvm/archive/v0.23.0.tar.gz --安装wget
6、拷贝nginx
scp -r ./nginx-1.8.0/ root@10.10.202.XX:/usr/local/