jenkins 安装配置

1、rpm 安装

#wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo

  #rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key

     #yum install jenkins

     #service jenkins start

     #curl http://127.0.0.1:8080

  2、tar安装

  #cd /root/

  #mkdir -p jenkins/jenkins_home

#mkdir -p jenkins/jenkins_node

#cd jenkins

#wget http://mirrors.jenkins-ci.org/war/latest/jenkins.war

  #start_jenkins.sh

#!/bin/bash

JENKINS_ROOT=/root/jenkins

export JENKINS_HOME=$JENKINS_ROOT/jenkins_home

java -jar $JENKINS_ROOT/jenkins.war --httpPort=8000

#chmod a+x start_jenkins.sh

#nohup ./start_jenkins.sh > jenkins.log 2>&1 &