博客迁移
安装
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
sudo yum install jenkins ```jenkins/primary_db | 36 kB 00:00:00 Resolving Dependencies
–> Running transaction check
—> Package jenkins.noarch 0:2.277.1-1.1 will be installed
–> Finished Dependency ResolutionDependencies Resolved
============================================================================================================================================================================================================== Package Arch
Version Repository
Size
============================================================================================================================================================================================================== Installing: jenkins noarch
2.277.1-1.1 jenkins 67 MTransaction Summary
============================================================================================================================================================================================================== Install 1 Package ```
- sudo yum install jenkins java-1.8.0-openjdk-devel
安装JDK
java -version
openjdk version "1.8.0_282" OpenJDK Runtime Environment (build 1.8.0_282-b08) OpenJDK 64-Bit Server VM (build 25.282-b08, mixed mode)sudo systemctl daemon-reload 加载新的unit 配置文件
CentOS中安装Jenkins与JDK的步骤
这篇博客详细记录了在CentOS系统上安装Jenkins和JDK的过程。首先通过yum安装jenkins的repo文件,然后导入公钥,接着使用yum安装Jenkins及其依赖。安装完成后,博主展示了成功安装的JDK版本,并通过systemctl daemon-reload确保系统加载了新的服务配置。
6018

被折叠的 条评论
为什么被折叠?



