一、测试环境
- Linux系统 Centos 7
二、安装步骤:
1、安装jdk
我安装的是jdk8,此处就不多说了,自己百度哈,很简单
2、安装jenkins
首先依次执行如下三个命令:
2.1、导入镜像:
[root@centos7 ~]# sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
--2019-12-24 17:59:44-- 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
2019-12-24 18:00:47 (17.4 MB/s) - ‘/etc/yum.repos.d/jenkins.repo’ saved [85/85]
2.2、导入公钥文章来源:https://www.toymoban.com/news/detail-695499.html
[root@centos7 ~]# sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
2.3、安装jenkins:文章来源地址https://www.toymoban.com/news/detail-695499.html
[root@centos7 ~]# yum install jenkins
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package jenkins.noarch 0:2.204.1-1.1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================&
到了这里,关于【一步到位】Jenkins的安装、部署、启动(完整教程)的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!