下载nodejs0.10.35
#wget https://nodejs.org/dist/v4.0.0/node-v0.10.35.tar.gz
#tar -zvxf node-v4.0.0.tar.gz
首先安装bzip库,然后重新安装python
#yum install -y bzip2*
#cd /usr/local/Python2.7.12/Modules/zlib
#./configure
#make
#make install
#cd ..
#cd ..
#python setup.py install
安装nodejs
#cd /usr/local/node-v4.0.0
#./configure --prefix=/usr/local/nodejs
#make
#make install
解压配置环境变量
/etc/profile
export NODE_HOME="usr/local/nodejs"
export PATH=$PATH:$NODE_HOME/bin