Skip to content

Sådan installeres Jenkins på Rocky Linux 9

Netcloud24
Cloud Infrastructure Expert
NetCloud24 Expert Guides Open the dedicated video page

Video transcript: NetCloud24 Expert Guides. Practical knowledge for a reliable cloud. Cloud and VPS expertise, security, performance, and step-by-step tutorials. Learn, deploy, and keep building with NetCloud24.

 

 

 

I denne vejledning vil vi gennemgå, hvordan du kan installere Jenkins, et populært automatiseringsserverværktøj, på en Rocky Linux 9-server. Denne installation kan være særligt nyttig for brugere af en VPS-server.

Forudsætninger

  • Rocky Linux 9 installeret på din server.
  • Root-adgang eller sudo-rettigheder.
  • En aktiv internetforbindelse.

Trin 1: Opdater systemet

Først skal du opdatere dit system for at sikre, at alle pakker er opdaterede:

sudo dnf update -y

Trin 2: Installer Java

Jenkins kræver Java for at køre. Installer OpenJDK:

sudo dnf install java-11-openjdk -y

Trin 3: Tilføj Jenkins repository

Tilføj Jenkins’ officielle repository til din systemkonfiguration:

sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key

Trin 4: Installer Jenkins

Installer Jenkins-pakken:

sudo dnf install jenkins -y

Trin 5: Start og aktiver Jenkins-tjenesten

Start Jenkins-tjenesten og aktiver den ved opstart:

Visual overview of Sådan installeres Jenkins på Rocky Linux 9
Visual overview: Sådan installeres Jenkins på Rocky Linux 9
sudo systemctl start jenkins
sudo systemctl enable jenkins

Trin 6: Konfigurer firewall (valgfrit)

Sørg for, at porten til Jenkins (standard er 8080) er åben i din firewall:

sudo firewall-cmd --zone=public --add-port=8080/tcp --permanent
sudo firewall-cmd --reload

Trin 7: Adgang til Jenkins-webgrænsefladen

Naviger til følgende URL i din webbrowser for at få adgang til Jenkins-webgrænsefladen:

http://your-server-ip:8080/

Afslutning

Dine Jenkins-applikationer er nu tilgængelige via din webbrowser. Denne løsning kan være særligt nyttig for dem, der ønsker at implementere CI/CD-processer effektivt fra en VPS-server.

 

Windows VPS Deutschland

Windows VPS España

Windows VPS Nederland

Windows VPS Italia

Key topics covered in Sådan installeres Jenkins på Rocky Linux 9
Key topics covered in this NetCloud24 guide.

Windows VPS Portugal

VPS Windows Italia

Windows VPS

Windows VPS

Windows VPS Sverige

Windows VPS Norge

Windows VPS

Windows VPS Türkiye

Windows RDS (Remote Desktop Services)

Practical checklist for Sådan installeres Jenkins på Rocky Linux 9
Practical checklist for applying the guidance in this article.

Windows VPS

Sådan installeres Jenkins på Rocky Linux 9
Sådan installeres Jenkins på Rocky Linux 9
Explore more

More on this topic

Netcloud24
Netcloud24
Cloud Infrastructure Expert · NetCloud24

Comments are closed.