目 录CONTENT

文章目录

RockyLinux安装jenkins

vanegoo
2024-05-06 / 0 评论 / 0 点赞 / 6 阅读 / 3007 字 / 正在检测是否收录...

jdk准备

检查jdk版本, 需要11以上版本,建议Java-17

# 检查版本
[root@demo ~]# java -version
openjdk version "11.0.23" 2024-04-16 LTS
OpenJDK Runtime Environment (Red_Hat-11.0.23.0.9-2) (build 11.0.23+9-LTS)
OpenJDK 64-Bit Server VM (Red_Hat-11.0.23.0.9-2) (build 11.0.23+9-LTS, mixed mode, sharing)

如果没有安装jdk,安装一下

[root@demo ~]# yum search java-11
Last metadata expiration check: 2:12:34 ago on Mon 06 May 2024 06:28:33 PM CST.
=========================================================== Name Matched: java-11 ===========================================================
java-11-openjdk.x86_64 : OpenJDK 11 Runtime Environment
java-11-openjdk-demo.x86_64 : OpenJDK 11 Demos
java-11-openjdk-devel.x86_64 : OpenJDK 11 Development Environment
java-11-openjdk-headless.x86_64 : OpenJDK 11 Headless Runtime Environment
java-11-openjdk-javadoc.x86_64 : OpenJDK 11 API documentation
...

[root@demo ~]# yum -y install java-11-openjdk-devel.x86_64

安装jenkins

[root@demo ~]# wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
[root@demo ~]# rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key

[root@demo ~]# yum -y install jenkins

jenkins 插件下载加速参考这篇文章:【Jenkins】之配置国内镜像加速

访问

浏览器输入 http://地址:8080

0

评论区