Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Jenkins on CentOS 8

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Installing Jenkins on CentOS 8 requires the use of an root account or an account with sudo privileges. Because Jenkins is written in Java, you need to install the Java environment

1. Install OpenJDK.

Sudo dnf install java-1.8.0-openjdk-devel

2. Enable Jenkins repository. Run the following command to download and import the GPG key

Sudo wget-O / etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo

Sudo rpm-- import https://jenkins-ci.org/redhat/jenkins-ci.org.key

Install the latest stable version of Jenkins by typing the following command

Sudo dnf install jenkins

Or download jenkins-2.190.3-1.1.noarch.rpm from https://pkg.jenkins.io/redhat-stable/

Sudo dnf install jenkins-2.190.3-1.1.noarch.rpm

Start the Jenkins service and enable it to start when the system boots

Sudo systemctl start jenkins

Sudo systemctl enable jenkins

5. Check whether Jenkins is running

Systemctl status jenkins

6. Open the necessary ports using the following command

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

Sudo firewall-cmd-reload

7. Browser http://ip: 8080

8. Cat command to view the administrator account password of Jenkins on server CentOS 8

Sudo cat / var/lib/jenkins/secrets/initialAdminPassword

9. Copy the password from the terminal, paste it into the Administrator password field, and then click continue

10. Click the "install recommended plug-ins" box, and the installation process will begin

11 、

Jenkins was successfully installed on the CentOS system

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report