How to install Jenkins to Centos 7

本文记录了在Red Hat Linux上通过wget下载Jenkins仓库配置文件并导入密钥,最终使用yum命令成功安装Jenkins 2.89.4版本的全过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

[root@qwfys-0 ~]# wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
--2018-03-15 15:36:27--  https://pkg.jenkins.io/redhat-stable/jenkins.repo
Resolving pkg.jenkins.io (pkg.jenkins.io)... 52.202.51.185
Connecting to pkg.jenkins.io (pkg.jenkins.io)|52.202.51.185|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 85
Saving to: ‘/etc/yum.repos.d/jenkins.repo’

100%[================================================================>] 85          --.-K/s   in 0s      

2018-03-15 15:36:30 (2.54 MB/s) - ‘/etc/yum.repos.d/jenkins.repo’ saved [85/85]

[root@qwfys-0 ~]# rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
[root@qwfys-0 ~]# install jenkins
install: missing destination file operand after ‘jenkins’
Try 'install --help' for more information.
[root@qwfys-0 ~]# yum install jenkins
Loaded plugins: fastestmirror, langpacks
gitlab_gitlab-ce/x86_64/signature                                                  |  836 B  00:00:00     
gitlab_gitlab-ce/x86_64/signature                                                  | 1.0 kB  00:00:00 !!! 
gitlab_gitlab-ce-source/signature                                                  |  836 B  00:00:00     
gitlab_gitlab-ce-source/signature                                                  |  951 B  00:00:00 !!! 
jenkins                                                                            | 2.9 kB  00:00:00     
jenkins/primary_db                                                                 |  23 kB  00:00:00     
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package jenkins.noarch 0:2.89.4-1.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================================
 Package                 Arch                   Version                     Repository               Size
==========================================================================================================
Installing:
 jenkins                 noarch                 2.89.4-1.1                  jenkins                  71 M

Transaction Summary
==========================================================================================================
Install  1 Package

Total download size: 71 M
Installed size: 71 M
Is this ok [y/d/N]: y
Downloading packages:
jenkins-2.89.4-1.1.noarch.rpm                                                                                                                                                                                          |  71 MB  00:00:16     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : jenkins-2.89.4-1.1.noarch                                                                                                                                                                                                  1/1 
  Verifying  : jenkins-2.89.4-1.1.noarch                                                                                                                                                                                                  1/1 

Installed:
  jenkins.noarch 0:2.89.4-1.1                                                                                                                                                                                                                 

Complete!
[root@qwfys-0 ~]# 

——参考文献:RedHat Linux RPM packages for Jenkins

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

qwfys200

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值