到npm官网下载node-v8.1.3-linux-x64.tar,然后解压到/usr/local/目录下
/usr/local/node-v8.1.3-linux-x64
/etc/profile添加nodejs路径
- exportJAVA_HOME=/usr/local/jdk1.8.0_131
- exportMAVEN_HOME=/usr/local/apache-maven-3.3.9
- exportJENKINS_HOME=/var/lib/jenkins
- exportPATH=/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
- #安装cnpm
- npminstall-gcnpm--registry=
- #安装bzip2
- yuminstallbzip2-y
下面是jenkins的web界面配置