准备
- 1.NodeJs与NPM安装
yum install g++ curl openssl openssl-devel make gcc-c++ glibc-devel -y #安装GCC编译环境
wget http://nodejs.org/dist/node-latest.tar.gz #下载NodeJs
tar -xvpzf node-latest.tar.gz
cd node-v*
./configure #编译与安装
make
make install
curl http://npmjs.org/install.sh | sh #安装NPM
npm install mongodb mysql nginx-vhosts nginx-stubstatus connect redis connect-redis jade express express-resource emailjs futures #开发需要NPM模块支持
node --version #查看NodeJS版本