到npm官网下载node-v8.1.3-linux-x64.tar,然后解压到/usr/local/目录下
/usr/local/node-v8.1.3-linux-x64
/etc/profile添加nodejs路径
export JAVA_HOME=/usr/local/jdk1.8.0_131export MAVEN_HOME=/usr/local/apache-maven-3.3.9export JENKINS_HOME=/var/lib/jenkinsexport PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/jdk1.8.0_131/bin:/usr/local/jdk1.8.0_131/bin:/usr/local/apache-maven-3.3.9/bin:/usr/local/jdk1.8.0_131/bin:/usr/local/apache-maven-3.3.9/bin:/usr/local/node-v8.1.3-linux-x64/bin
重载配置环境. /etc/profile
#安装淘宝cnpm#安装cnpmnpm install -g cnpm --registry=#安装bzip2yum install bzip2 -y
下面是jenkins的web界面配置