jenkins安装:
Installation(只谈论centos上的安装,其它系统安装方法请移步jenkins官网)
yum安装
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
sudo rpm –import https://jenkins-ci.org/redhat/jenkins-ci.org.key
sudo yum install jenkins
或者yum安装稳定版
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo
sudo rpm –import https://jenkins-ci.org/redhat/jenkins-ci.org.key
sudo yum install jenkins
安装JAVA
Jenkins需要java环境,安装 Open Java Development Kit (OpenJDK)
sudo yum install java-1.8.0-openjdk
sudo service jenkins start/stop/restart
sudo chkconfig jenkins on