1

CentOS Jenkins基础安装

 1 year ago
source link: https://blog.51cto.com/baicia/5753444
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Jenkins基础安装

Jenkins介绍

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

Jenkins非常的灵活,可以配合很多平台工作,所以这也是为什么自动化CI CD会使用Jenkins。只要给Jenkins安装上对应的插件,那么Jenkins就会变的很强大。

Jenkins的安装

  • rpm yum localinstall -y xxx.rpm
  • war 直接放到tomcat的站点目录下会自动解压

jdk下载

JDK官网地址: TP

jenkins下载

Jenkins官网: TP

## 1.安装jdk
[root@auto01 ~]# yum install -y java

## 2.下载Jenkins的rpm包
[root@auto01 ~]# wget https://mirrors.tuna.tsinghua.edu.cn/jenkins/redhat-stable/jenkins-2.303.2-1.1.noarch.rpm --no-check-certificate

## 3.安装Jenkins
[root@auto01 ~]# yum localinstall jenkins-2.303.2-1.1.noarch.rpm

## 4.修改Jenkins配置文件,使用root用户启动
[root@auto01 ~]# vim /etc/sysconfig/jenkins
JENKINS_USER="root"
JENKINS_PORT="8180"

# 如果遇到端口8080冲突,可在配置文件修改端口

## 5.启动服务
[root@auto01 ~]# systemctl start jenkins

## 6.打开浏览器访问 10.0.0.81:8180
CentOS Jenkins基础安装_配置文件
## 查看密码
[root@auto01 ~]# cat /var/lib/jenkins/secrets/initialAdminPassword
421b005aa36f4264a1188bc875e6d26d
CentOS Jenkins基础安装_官网_02

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK