是否有wget 没有执行命令如下:
yum -y install gcc make gcc-c++ openssl-devel wget
如果已有wget
则下载源码及解压:
wget http://nodejs.org/dist/v0.10.26/node-v0.10.26.tar.gz
tar -zvxf node-v0.10.26.tar.gz
编译及安装:
make && make install
验证是否安装配置成功:
node -v
yum -y install gcc make gcc-c++ openssl-devel wget
wget http://nodejs.org/dist/v0.10.26/node-v0.10.26.tar.gz
tar -zvxf node-v0.10.26.tar.gz
make && make install
node -v