미완료 작성건
테스트 환경 : Oracle Linux 7.9
1. Long Term Support releas 설치
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 upgrade
$ sudo wget -O /etc/yum.repos.d/jenkins.repo \
> https://pkg.jenkins.io/redhat-stable/jenkins.repo
[sudo] tuxedo의 암호:
--2022-09-22 04:49:07-- https://pkg.jenkins.io/redhat-stable/jenkins.repo
Resolving pkg.jenkins.io (pkg.jenkins.io)... 146.75.50.133
Connecting to pkg.jenkins.io (pkg.jenkins.io)|146.75.50.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 85
Saving to: ‘/etc/yum.repos.d/jenkins.repo’
100%[====================================================>] 85 --.-K/s in 0s
2022-09-22 04:49:08 (1.53 MB/s) - ‘/etc/yum.repos.d/jenkins.repo’ saved [85/85]
tuxedo@/home/tuxedo > sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
tuxedo@/home/tuxedo > sudo yum upgrade
Loaded plugins: langpacks, ulninfo
jenkins | 2.9 kB 00:00:00
ol7_UEKR6 | 3.0 kB 00:00:00
ol7_latest | 3.6 kB 00:00:00
(1/5): ol7_UEKR6/x86_64/updateinfo | 630 kB 00:00:00
(2/5): jenkins/primary_db | 43 kB 00:00:01
(3/5): ol7_latest/x86_64/updateinfo | 3.5 MB 00:00:01
(4/5): ol7_latest/x86_64/primary_db | 42 MB 00:00:10
(5/5): ol7_UEKR6/x86_64/primary_db | 46 MB 00:00:12
Resolving Dependencies
--> Running transaction check
---> Package ca-certificates.noarch 0:2021.2.50-72.el7_9 will be updated
---> Package ca-certificates.noarch 0:2022.2.54-74.el7_9 will be an update
---> Package grub2.x86_64 1:2.02-0.87.0.21.el7_9.9 will be updated
---> Package grub2.x86_64 1:2.02-0.87.0.23.el7_9.9 will be an update
---> Package grub2-common.noarch 1:2.02-0.87.0.21.el7_9.9 will be updated
---> Package grub2-common.noarch 1:2.02-0.87.0.23.el7_9.9 will be an update
---> Package grub2-efi-x64.x86_64 1:2.02-0.87.0.21.el7_9.9 will be updated
---> Package grub2-efi-x64.x86_64 1:2.02-0.87.0.23.el7_9.9 will be an update
---> Package grub2-pc.x86_64 1:2.02-0.87.0.21.el7_9.9 will be updated
---> Package grub2-pc.x86_64 1:2.02-0.87.0.23.el7_9.9 will be an update
---> Package grub2-pc-modules.noarch 1:2.02-0.87.0.21.el7_9.9 will be updated
---> Package grub2-pc-modules.noarch 1:2.02-0.87.0.23.el7_9.9 will be an update
---> Package grub2-tools.x86_64 1:2.02-0.87.0.21.el7_9.9 will be updated
---> Package grub2-tools.x86_64 1:2.02-0.87.0.23.el7_9.9 will be an update
---> Package grub2-tools-extra.x86_64 1:2.02-0.87.0.21.el7_9.9 will be updated
---> Package grub2-tools-extra.x86_64 1:2.02-0.87.0.23.el7_9.9 will be an update
---> Package grub2-tools-minimal.x86_64 1:2.02-0.87.0.21.el7_9.9 will be updated
---> Package grub2-tools-minimal.x86_64 1:2.02-0.87.0.23.el7_9.9 will be an update
---> Package java-1.8.0-openjdk.x86_64 1:1.8.0.342.b07-1.el7_9 will be updated
---> Package java-1.8.0-openjdk.x86_64 1:1.8.0.345.b01-1.el7_9 will be an update
---> Package java-1.8.0-openjdk-devel.x86_64 1:1.8.0.342.b07-1.el7_9 will be updated
---> Package java-1.8.0-openjdk-devel.x86_64 1:1.8.0.345.b01-1.el7_9 will be an update
---> Package java-1.8.0-openjdk-headless.x86_64 1:1.8.0.342.b07-1.el7_9 will be updated
---> Package java-1.8.0-openjdk-headless.x86_64 1:1.8.0.345.b01-1.el7_9 will be an update
---> Package kernel-uek.x86_64 0:5.4.17-2136.311.6.el7uek will be installed
---> Package libsmbclient.x86_64 0:4.10.16-19.el7_9 will be updated
---> Package libsmbclient.x86_64 0:4.10.16-20.el7_9 will be an update
---> Package libwbclient.x86_64 0:4.10.16-19.el7_9 will be updated
---> Package libwbclient.x86_64 0:4.10.16-20.el7_9 will be an update
---> Package samba-client-libs.x86_64 0:4.10.16-19.el7_9 will be updated
---> Package samba-client-libs.x86_64 0:4.10.16-20.el7_9 will be an update
---> Package samba-common.noarch 0:4.10.16-19.el7_9 will be updated
---> Package samba-common.noarch 0:4.10.16-20.el7_9 will be an update
---> Package samba-common-libs.x86_64 0:4.10.16-19.el7_9 will be updated
---> Package samba-common-libs.x86_64 0:4.10.16-20.el7_9 will be an update
---> Package tuned.noarch 0:2.11.0-11.0.1.el7_9 will be updated
---> Package tuned.noarch 0:2.11.0-12.0.1.el7_9 will be an update
---> Package xfsdump.x86_64 0:3.1.7-1.el7 will be updated
---> Package xfsdump.x86_64 0:3.1.7-2.el7_9 will be an update
--> Finished Dependency Resolution
--> Running transaction check
---> Package kernel-uek.x86_64 0:5.4.17-2102.201.3.el7uek will be erased
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================
Package Arch Version Repository Size
==============================================================================================
Installing:
kernel-uek x86_64 5.4.17-2136.311.6.el7uek ol7_UEKR6 107 M
Updating:
ca-certificates noarch 2022.2.54-74.el7_9 ol7_latest 911 k
grub2 x86_64 1:2.02-0.87.0.23.el7_9.9 ol7_latest 36 k
grub2-common noarch 1:2.02-0.87.0.23.el7_9.9 ol7_latest 734 k
grub2-efi-x64 x86_64 1:2.02-0.87.0.23.el7_9.9 ol7_latest 1.1 M
grub2-pc x86_64 1:2.02-0.87.0.23.el7_9.9 ol7_latest 35 k
grub2-pc-modules noarch 1:2.02-0.87.0.23.el7_9.9 ol7_latest 862 k
grub2-tools x86_64 1:2.02-0.87.0.23.el7_9.9 ol7_latest 1.8 M
grub2-tools-extra x86_64 1:2.02-0.87.0.23.el7_9.9 ol7_latest 1.0 M
grub2-tools-minimal x86_64 1:2.02-0.87.0.23.el7_9.9 ol7_latest 179 k
java-1.8.0-openjdk x86_64 1:1.8.0.345.b01-1.el7_9 ol7_latest 314 k
java-1.8.0-openjdk-devel x86_64 1:1.8.0.345.b01-1.el7_9 ol7_latest 9.7 M
java-1.8.0-openjdk-headless x86_64 1:1.8.0.345.b01-1.el7_9 ol7_latest 33 M
libsmbclient x86_64 4.10.16-20.el7_9 ol7_latest 146 k
libwbclient x86_64 4.10.16-20.el7_9 ol7_latest 116 k
samba-client-libs x86_64 4.10.16-20.el7_9 ol7_latest 5.0 M
samba-common noarch 4.10.16-20.el7_9 ol7_latest 216 k
samba-common-libs x86_64 4.10.16-20.el7_9 ol7_latest 182 k
tuned noarch 2.11.0-12.0.1.el7_9 ol7_latest 271 k
xfsdump x86_64 3.1.7-2.el7_9 ol7_latest 308 k
Removing:
kernel-uek x86_64 5.4.17-2102.201.3.el7uek @anaconda/7.9 68 M
Transaction Summary
==============================================================================================
Install 1 Package
Upgrade 19 Packages
Remove 1 Package
Total download size: 163 M
Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for ol7_UEKR6
No Presto metadata available for ol7_latest
(1/20): grub2-2.02-0.87.0.23.el7_9.9.x86_64.rpm | 36 kB 00:00:00
(2/20): ca-certificates-2022.2.54-74.el7_9.noarch.rpm | 911 kB 00:00:00
(3/20): grub2-common-2.02-0.87.0.23.el7_9.9.noarch.rpm | 734 kB 00:00:00
(4/20): grub2-pc-2.02-0.87.0.23.el7_9.9.x86_64.rpm | 35 kB 00:00:00
(5/20): grub2-efi-x64-2.02-0.87.0.23.el7_9.9.x86_64.rpm | 1.1 MB 00:00:00
(6/20): grub2-pc-modules-2.02-0.87.0.23.el7_9.9.noarch.rpm | 862 kB 00:00:00
(7/20): grub2-tools-2.02-0.87.0.23.el7_9.9.x86_64.rpm | 1.8 MB 00:00:00
(8/20): grub2-tools-minimal-2.02-0.87.0.23.el7_9.9.x86_64.rpm | 179 kB 00:00:00
(9/20): grub2-tools-extra-2.02-0.87.0.23.el7_9.9.x86_64.rpm | 1.0 MB 00:00:00
(10/20): java-1.8.0-openjdk-1.8.0.345.b01-1.el7_9.x86_64.rpm | 314 kB 00:00:00
(11/20): java-1.8.0-openjdk-devel-1.8.0.345.b01-1.el7_9.x86_64.rpm | 9.7 MB 00:00:02
(12/20): libsmbclient-4.10.16-20.el7_9.x86_64.rpm | 146 kB 00:00:00
(13/20): libwbclient-4.10.16-20.el7_9.x86_64.rpm | 116 kB 00:00:02
(14/20): samba-client-libs-4.10.16-20.el7_9.x86_64.rpm | 5.0 MB 00:00:02
(15/20): samba-common-4.10.16-20.el7_9.noarch.rpm | 216 kB 00:00:00
(16/20): samba-common-libs-4.10.16-20.el7_9.x86_64.rpm | 182 kB 00:00:00
(17/20): tuned-2.11.0-12.0.1.el7_9.noarch.rpm | 271 kB 00:00:00
(18/20): xfsdump-3.1.7-2.el7_9.x86_64.rpm | 308 kB 00:00:00
(19/20): java-1.8.0-openjdk-headless-1.8.0.345.b01-1.el7_9.x86_64.rpm | 33 MB 00:00:12
(20/20): kernel-uek-5.4.17-2136.311.6.el7uek.x86_64.rpm | 107 MB 00:00:25
----------------------------------------------------------------------------------------------
Total 5.9 MB/s | 163 MB 00:00:27
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : 1:grub2-common-2.02-0.87.0.23.el7_9.9.noarch 1/40
Updating : 1:grub2-tools-minimal-2.02-0.87.0.23.el7_9.9.x86_64 2/40
Updating : 1:grub2-tools-2.02-0.87.0.23.el7_9.9.x86_64 3/40
Updating : samba-common-4.10.16-20.el7_9.noarch 4/40
Updating : samba-common-libs-4.10.16-20.el7_9.x86_64 5/40
Updating : libwbclient-4.10.16-20.el7_9.x86_64 6/40
Updating : samba-client-libs-4.10.16-20.el7_9.x86_64 7/40
Updating : 1:grub2-tools-extra-2.02-0.87.0.23.el7_9.9.x86_64 8/40
Updating : 1:grub2-pc-modules-2.02-0.87.0.23.el7_9.9.noarch 9/40
Updating : 1:grub2-pc-2.02-0.87.0.23.el7_9.9.x86_64 10/40
Updating : ca-certificates-2022.2.54-74.el7_9.noarch 11/40
Updating : 1:java-1.8.0-openjdk-headless-1.8.0.345.b01-1.el7_9.x86_64 12/40
Updating : 1:java-1.8.0-openjdk-1.8.0.345.b01-1.el7_9.x86_64 13/40
Updating : 1:java-1.8.0-openjdk-devel-1.8.0.345.b01-1.el7_9.x86_64 14/40
Updating : 1:grub2-2.02-0.87.0.23.el7_9.9.x86_64 15/40
Updating : 1:grub2-efi-x64-2.02-0.87.0.23.el7_9.9.x86_64 16/40
Updating : libsmbclient-4.10.16-20.el7_9.x86_64 17/40
Installing : kernel-uek-5.4.17-2136.311.6.el7uek.x86_64 18/40
Updating : xfsdump-3.1.7-2.el7_9.x86_64 19/40
Updating : tuned-2.11.0-12.0.1.el7_9.noarch 20/40
Cleanup : 1:grub2-efi-x64-2.02-0.87.0.21.el7_9.9.x86_64 21/40
Cleanup : 1:grub2-2.02-0.87.0.21.el7_9.9.x86_64 22/40
Cleanup : 1:grub2-pc-2.02-0.87.0.21.el7_9.9.x86_64 23/40
Cleanup : 1:grub2-pc-modules-2.02-0.87.0.21.el7_9.9.noarch 24/40
Cleanup : tuned-2.11.0-11.0.1.el7_9.noarch 25/40
Cleanup : kernel-uek-5.4.17-2102.201.3.el7uek.x86_64 26/40
Cleanup : libsmbclient-4.10.16-19.el7_9.x86_64 27/40
Cleanup : libwbclient-4.10.16-19.el7_9.x86_64 28/40
Cleanup : samba-client-libs-4.10.16-19.el7_9.x86_64 29/40
Cleanup : samba-common-libs-4.10.16-19.el7_9.x86_64 30/40
Cleanup : 1:grub2-tools-extra-2.02-0.87.0.21.el7_9.9.x86_64 31/40
Cleanup : 1:grub2-tools-2.02-0.87.0.21.el7_9.9.x86_64 32/40
Cleanup : 1:java-1.8.0-openjdk-devel-1.8.0.342.b07-1.el7_9.x86_64 33/40
Cleanup : samba-common-4.10.16-19.el7_9.noarch 34/40
Cleanup : 1:java-1.8.0-openjdk-1.8.0.342.b07-1.el7_9.x86_64 35/40
Cleanup : 1:java-1.8.0-openjdk-headless-1.8.0.342.b07-1.el7_9.x86_64 36/40
Cleanup : 1:grub2-tools-minimal-2.02-0.87.0.21.el7_9.9.x86_64 37/40
Cleanup : 1:grub2-common-2.02-0.87.0.21.el7_9.9.noarch 38/40
Cleanup : ca-certificates-2021.2.50-72.el7_9.noarch 39/40
Cleanup : xfsdump-3.1.7-1.el7.x86_64 40/40
Verifying : samba-common-4.10.16-20.el7_9.noarch 1/40
Verifying : 1:grub2-pc-modules-2.02-0.87.0.23.el7_9.9.noarch 2/40
Verifying : 1:java-1.8.0-openjdk-headless-1.8.0.345.b01-1.el7_9.x86_64 3/40
Verifying : 1:java-1.8.0-openjdk-devel-1.8.0.345.b01-1.el7_9.x86_64 4/40
Verifying : 1:grub2-common-2.02-0.87.0.23.el7_9.9.noarch 5/40
Verifying : tuned-2.11.0-12.0.1.el7_9.noarch 6/40
Verifying : xfsdump-3.1.7-2.el7_9.x86_64 7/40
Verifying : kernel-uek-5.4.17-2136.311.6.el7uek.x86_64 8/40
Verifying : 1:grub2-2.02-0.87.0.23.el7_9.9.x86_64 9/40
Verifying : samba-common-libs-4.10.16-20.el7_9.x86_64 10/40
Verifying : 1:grub2-tools-extra-2.02-0.87.0.23.el7_9.9.x86_64 11/40
Verifying : 1:java-1.8.0-openjdk-1.8.0.345.b01-1.el7_9.x86_64 12/40
Verifying : libsmbclient-4.10.16-20.el7_9.x86_64 13/40
Verifying : 1:grub2-pc-2.02-0.87.0.23.el7_9.9.x86_64 14/40
Verifying : libwbclient-4.10.16-20.el7_9.x86_64 15/40
Verifying : 1:grub2-tools-minimal-2.02-0.87.0.23.el7_9.9.x86_64 16/40
Verifying : samba-client-libs-4.10.16-20.el7_9.x86_64 17/40
Verifying : 1:grub2-efi-x64-2.02-0.87.0.23.el7_9.9.x86_64 18/40
Verifying : ca-certificates-2022.2.54-74.el7_9.noarch 19/40
Verifying : 1:grub2-tools-2.02-0.87.0.23.el7_9.9.x86_64 20/40
Verifying : kernel-uek-5.4.17-2102.201.3.el7uek.x86_64 21/40
Verifying : 1:grub2-tools-minimal-2.02-0.87.0.21.el7_9.9.x86_64 22/40
Verifying : 1:grub2-pc-modules-2.02-0.87.0.21.el7_9.9.noarch 23/40
Verifying : ca-certificates-2021.2.50-72.el7_9.noarch 24/40
Verifying : 1:grub2-common-2.02-0.87.0.21.el7_9.9.noarch 25/40
Verifying : 1:grub2-efi-x64-2.02-0.87.0.21.el7_9.9.x86_64 26/40
Verifying : samba-common-4.10.16-19.el7_9.noarch 27/40
Verifying : 1:grub2-pc-2.02-0.87.0.21.el7_9.9.x86_64 28/40
Verifying : libwbclient-4.10.16-19.el7_9.x86_64 29/40
Verifying : 1:java-1.8.0-openjdk-devel-1.8.0.342.b07-1.el7_9.x86_64 30/40
Verifying : 1:grub2-2.02-0.87.0.21.el7_9.9.x86_64 31/40
Verifying : libsmbclient-4.10.16-19.el7_9.x86_64 32/40
Verifying : 1:grub2-tools-2.02-0.87.0.21.el7_9.9.x86_64 33/40
Verifying : samba-client-libs-4.10.16-19.el7_9.x86_64 34/40
Verifying : samba-common-libs-4.10.16-19.el7_9.x86_64 35/40
Verifying : tuned-2.11.0-11.0.1.el7_9.noarch 36/40
Verifying : 1:java-1.8.0-openjdk-headless-1.8.0.342.b07-1.el7_9.x86_64 37/40
Verifying : xfsdump-3.1.7-1.el7.x86_64 38/40
Verifying : 1:java-1.8.0-openjdk-1.8.0.342.b07-1.el7_9.x86_64 39/40
Verifying : 1:grub2-tools-extra-2.02-0.87.0.21.el7_9.9.x86_64 40/40
Removed:
kernel-uek.x86_64 0:5.4.17-2102.201.3.el7uek
Installed:
kernel-uek.x86_64 0:5.4.17-2136.311.6.el7uek
Updated:
ca-certificates.noarch 0:2022.2.54-74.el7_9
grub2.x86_64 1:2.02-0.87.0.23.el7_9.9
grub2-common.noarch 1:2.02-0.87.0.23.el7_9.9
grub2-efi-x64.x86_64 1:2.02-0.87.0.23.el7_9.9
grub2-pc.x86_64 1:2.02-0.87.0.23.el7_9.9
grub2-pc-modules.noarch 1:2.02-0.87.0.23.el7_9.9
grub2-tools.x86_64 1:2.02-0.87.0.23.el7_9.9
grub2-tools-extra.x86_64 1:2.02-0.87.0.23.el7_9.9
grub2-tools-minimal.x86_64 1:2.02-0.87.0.23.el7_9.9
java-1.8.0-openjdk.x86_64 1:1.8.0.345.b01-1.el7_9
java-1.8.0-openjdk-devel.x86_64 1:1.8.0.345.b01-1.el7_9
java-1.8.0-openjdk-headless.x86_64 1:1.8.0.345.b01-1.el7_9
libsmbclient.x86_64 0:4.10.16-20.el7_9
libwbclient.x86_64 0:4.10.16-20.el7_9
samba-client-libs.x86_64 0:4.10.16-20.el7_9
samba-common.noarch 0:4.10.16-20.el7_9
samba-common-libs.x86_64 0:4.10.16-20.el7_9
tuned.noarch 0:2.11.0-12.0.1.el7_9
xfsdump.x86_64 0:3.1.7-2.el7_9
Complete!
2. Jenkins 설치
$ sudo yum install jenkins
[sudo] tuxedo의 암호:
Loaded plugins: langpacks, ulninfo
Resolving Dependencies
--> Running transaction check
---> Package jenkins.noarch 0:2.361.1-1.1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================
Package Arch Version Repository Size
==============================================================================================
Installing:
jenkins noarch 2.361.1-1.1 jenkins 89 M
Transaction Summary
==============================================================================================
Install 1 Package
Total download size: 89 M
Installed size: 89 M
Is this ok [y/d/N]: y
Downloading packages:
jenkins-2.361.1-1.1.noarch.rpm | 89 MB 00:00:25
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : jenkins-2.361.1-1.1.noarch 1/1
Verifying : jenkins-2.361.1-1.1.noarch 1/1
Installed:
jenkins.noarch 0:2.361.1-1.1
Complete!
$ sudo systemctl daemon-reload
3. Jenkins 서비스 등록
$ sudo systemctl enable jenkins
Created symlink from /etc/systemd/system/multi-user.target.wants/jenkins.service
to /usr/lib/systemd/system/jenkins.service.
4. 에러
source jenkins
9월 22, 2022 6:26:33 오전 executable.Main verifyJavaVersion
심각: Running with Java class version 52, which is older than the Minimum required version 55. See https://jenkins.io/redirect/java-support/
java.lang.UnsupportedClassVersionError: 52.0
at executable.Main.verifyJavaVersion(Main.java:145)
at executable.Main.main(Main.java:109)
Jenkins requires Java versions [17, 11] but you are running with Java 1.8 from /usr/java/jdk1.8.0_311/jre
java.lang.UnsupportedClassVersionError: 52.0
at executable.Main.verifyJavaVersion(Main.java:145)
at executable.Main.main(Main.java:109)
'OS > Linux&Unix' 카테고리의 다른 글
[Linux/Unix] 리눅스 방화벽 확인 및 중단 시키기 (0) | 2022.09.27 |
---|---|
[Linux/Unix] oracle linux 자바 설치 (0) | 2022.09.26 |
[Linux/Unix] find 파일 찾기 (상세) (0) | 2022.09.22 |
[Linux/Unix] find ./ mtime 테스트 (0) | 2022.09.21 |
[Linux/Unix] grep / egrep 차이점? (0) | 2022.09.21 |