centos中yum方式部署Jenkins

第一步:先参考官方文档指导,了解Jenkins所需的依赖java环境,

https://mirrors.jenkins-ci.org/redhat/

powershell 复制代码
#查看是否有jdk17可安装,没有的话,则重现下载ipm
yum search java | grep -i --color jdk
wget https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.rpm
yum -y install ./jdk-17_linux-x64_bin.rpm
java -version

wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat/jenkins.repo
rpm --import https://pkg.jenkins.io/redhat/jenkins.io-2023.key
yum install fontconfig java-17-openjdk
yum install jenkins

systemctl start jenkins
systemctl status jenkins



vim /usr/lib/systemd/system/jenkins.service  #jenkins安装目录,Jenkins配置文件
systemctl daemon-reloa
systemctl restart jenkins


maven下载包地址:
https://archive.apache.org/dist/maven/

https://mirrors.bfsu.edu.cn/apache/maven/
相关推荐
yzx9910131 小时前
Linux 系统中的算法技巧与性能优化
linux·算法·性能优化
fengyehongWorld1 小时前
Linux Docker的简介
linux·docker
曹瑞曹瑞1 小时前
VMware导入vmdk文件
linux·运维·服务器
Johny_Zhao1 小时前
2025年6月Docker镜像加速失效终极解决方案
linux·网络·网络安全·docker·信息安全·kubernetes·云计算·containerd·yum源·系统运维
冰橙子id2 小时前
centos7编译安装LNMP架构
mysql·nginx·架构·centos·php
hello kitty w2 小时前
Python学习(7) ----- Python起源
linux·python·学习
十年磨一剑~2 小时前
centos查看开启关闭防火墙状态
linux·运维·centos
vortex53 小时前
探索 Shell:选择适合你的命令行利器 bash, zsh, fish, dash, sh...
linux·开发语言·bash·shell·dash
GalaxyPokemon4 小时前
LeetCode - 148. 排序链表
linux·算法·leetcode
懒羊羊大王呀4 小时前
Ubuntu20.04中 Redis 的安装和配置
linux·redis