java环境配置

 下载jdk包:

wget http://download.oracle.com/otn-pub/java/jdk/7u65-b17/jdk-7u65-linux-x64.rpm?AuthParam=1406282562_372f3e5c16906b3667dc87971c6b3e9e]

安装jdk:

 sudo rpm -ivh  jdk-7u65-linux-x64.rpm

maven环境配置

下载maven:

Wget http://mirror.bit.edu.cn/apache/maven/maven-3/3.2.2/binaries/apache-maven-3.2.2-bin.tar.gz

配置maven环境:

  • 解压:tar -xzvf apache-maven-3.2.2-bin.tar.gz 
  • 创建maven目标存放目录: cd /opt

sudo mkdir maven

  • 将解压的文件移动到目标目录:mv ~/software/apache-maven-3.2.2 /opt/maven 
  • 在/etc/profile的最后一行加入环境变量设置         

export MAVEN_HOME=/opt/maven/apache-maven-3.2.2

export JAVA_HOME=/usr/java/jdk1.7.0_65

export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$MAVEN_HOME/bin:$PATH

  • 执行“source /etc/profile”
  • 通过mvn -version检查maven是否生效

Jenkins配置

下载jenkins包:

Wget http://ftp-chi.osuosl.org/pub/jenkins/redhat/jenkins-1.573-1.1.noarch.rpm

安装jenkins:

sudo rpm -ivh jenkins-1.573-1.1.noarch.rpm

启动jenkins(默认端口8080)

sudo /sbin/service jenkins start

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐