首页 > 代码库 > linux install nodejs

linux install nodejs

下载/安装python
yum install -y bzip2*           #nodejs 0.8.5需要,请安装python前,先安装此模块。 wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgztar zvxf Python-2.7.3.tgzcd Python-2.7.3./configuremake && make install/usr/local/bin/python2.7 -V     #查看Python版本

准备命令:

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

linux install nodejs