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/
相关推荐
大路谈数字化1 小时前
Centos中内存CPU硬盘的查询
linux·运维·centos
luoqice2 小时前
linux下查看 UDP Server 端口的启用情况
linux
倔强的石头_3 小时前
【Linux指南】动静态库与链接机制:从原理到实践
linux
赏点剩饭7783 小时前
linux中的hostpath卷、nfs卷以及静态持久卷的区别
linux·运维·服务器
神鸟云3 小时前
DELL服务器 R系列 IPMI的配置
linux·运维·服务器·网络·边缘计算·pcdn
herderl3 小时前
**僵尸进程(Zombie Process)** 和**孤儿进程(Orphan Process)**
linux·运维·服务器·网络·网络协议
lepton_yang4 小时前
Zephyr下控制ESP32S3的GPIO口
linux·嵌入式硬件·esp32·zephyr
泽02024 小时前
Linux 编译器 gcc 与 g++
linux·运维·服务器
G_H_S_3_4 小时前
【网络运维】Playbook项目实战:基于 Ansible Playbook 一键部署 LNMP 架构服务器
linux·运维·服务器·网络·ansible