jenkins

安装

  1. centos7系统安装
1
2
3
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
yum install jenkins

官方安装比较慢,使用下面的国内地址

1
2
wget https://mirrors.tuna.tsinghua.edu.cn/jenkins/redhat-stable/jenkins-2.150.3-1.1.noarch.rpm
rpm -ivh jenkins-2.150.3-1.1.noarch.rpm

配置

  • 修改端口
1
vim /etc/sysconfig/jenkins

启动

1
2
3
4
service jenkins start | stop | restart

# 设置开机启动
sudo chkconfig jenkins on
您的支持将鼓励我继续创作!