jenkins安装和部署

jenkins

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

官网 jenkins.io

Jenkins是一个开源软件项目,是基于Java开发的一种持续集成工具,用于监控持续重复的工作,旨在提供一个开放易用的软件平台,使软件的持续集成变成可能。

1.安装准备

装备两台服务器 关闭selinux和防火墙内存2G 50G+硬盘 jenkins

[root@localhost ~]# java -version

openjdk version "1.8.0_201"

OpenJDK Runtime Environment (build 1.8.0_201-b09)

OpenJDK 64-Bit Server VM (build 25.201-b09, mixed mode)

 

[root@localhost ~]# rpm -ivh jenkins-2.99-1.1.noarch.rpm

warning: jenkins-2.99-1.1.noarch.rpm: Header V4 DSA/SHA1 Signature, key ID d50582e6: NOKEY

Preparing...                          ################################# [100%]

Updating / installing...

   1:jenkins-2.99-1.1                 ################################# [100%]

 

[root@localhost ~]# vim /etc/sysconfig/jenkins

阿萨德 随笔 第1张

 

[root@localhost ~]# systemctl start jenkins

[root@localhost ~]# systemctl enable jenkins

 

 

http://192.168.171.145:8080/

 

阿萨德 随笔 第2张阿萨德 随笔 第3张

 

 

阿萨德 随笔 第4张

 

 

阿萨德 随笔 第5张

 

[root@localhost plugins]# tar xvf plugins.tar.gz

[root@localhost plugins]# mv plugins/* .

 

 

[root@localhost plugins]# systemctl restart jenkins

 

 

阿萨德 随笔 第6张

 

阿萨德 随笔 第7张

 

 

阿萨德 随笔 第8张

 

 

阿萨德 随笔 第9张

 

 

 

码云上的监控html页面先下载到gitlab,随后从gitlab下拉到服务器并发布

 

阿萨德 随笔 第10张

 

阿萨德 随笔 第11张

 

阿萨德 随笔 第12张

 

 

 

[root@localhost git_data]# git remote add origin git@192.168.171.146:gitlabnsh/monitor.git

将html从gitlab上拉下来到服务武器

[root@localhost ~]# git clone git@192.168.171.146:gitlabnsh/monitor.git

 

服务器安装nginx开始测试

[root@localhost ~]# yum -y install nginx

html页面放到nginx页面目录下即可

阿萨德 随笔 第13张

 

阿萨德 随笔 第14张

 

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄