安装
- centos7系统安装
1 | sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo |
官方安装比较慢,使用下面的国内地址
1 | wget https://mirrors.tuna.tsinghua.edu.cn/jenkins/redhat-stable/jenkins-2.150.3-1.1.noarch.rpm |
配置
- 修改端口
1 | vim /etc/sysconfig/jenkins |
启动
1 | service jenkins start | stop | restart |