Jenkins install - TuPengXiong/TuPengXiong.github.io GitHub Wiki

#Jenkins 的安装

https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu

  • 添加jenkins的来源
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
  • 安装jenkins
sudo apt-get update
sudo apt-get install jenkins

centos

1 wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
2 rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
3 yum install -y jenkins

 vi /etc/sysconfig/jenkins

JENKINS_PORT="8080

service jenkins start/stop/restart