jenkens install
首先需要安装java centos7 安装java
ubuntu
install
wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins
upgrade
sudo apt-get update
sudo apt-get install jenkins
centos7
如果环境没问题不需要更新
sudo yum install epel-release
sudo yum update
sudo reboot
安装jenkens
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
稳定版
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_home
vi /etc/init.d/jenkens
启动关闭
sudo service jenkins start/stop/restart
sudo chkconfig jenkins on