How to install Jenkins on CentOS 8

How to install Jenkins on CentOS 8

To install Jenkins on CentOS 8, you need to use the 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 the Jenkins repository. Run the following commands 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

3. Install the latest stable version of Jenkins by typing the following command jenkins-2.190.3-1.1.noarch.rpm sudo dnf install jenkins-2.190.3-1.1.noarch.rpm

4. sudo systemctl start jenkins sudo systemctl enable jenkins

5. Check if Jenkins is running systemctl status jenkins

6. Use the following commands to open the necessary ports sudo firewall-cmd --permanent --zone=public --add-port=8080/tcp sudo firewall-cmd --reload

7. Browser http://ip:8080

8. Use the cat command to view the administrator account password of Jenkins on the 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 click "Continue

10. Click on the "Install suggested plugins" box and the installation process will begin

11.

Jenkins successfully installed on CentOS system

Summarize

The above is the method I introduced to you to install Jenkins on CentOS 8. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!
If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

You may also be interested in:
  • Detailed explanation of the installation process of Jenkins on CentOS 7
  • Detailed steps to install Jenkins on centos 7 system
  • How to install Jenkins on CentOS
  • Setting up GitLab+Jenkins continuous integration environment under centos (installing Jenkins)
  • CentOS 7 installation of Jenkins detailed introduction
  • Complete steps to install Jenkins under CentOS

<<:  An article to understand operators in ECMAScript

>>:  Binary installation of mysql 5.7.23 under CentOS7

Recommend

Move MySQL database to another disk under Windows

Preface Today I installed MySQL and found that th...

A brief discussion on Mysql specified order sorting query

Recently, I have been working on a large-screen d...

HTML framework_Powernode Java Academy

1. Framework A browser document window can only d...

How to set a fixed IP address in CentOS7 virtual machine

Since my development environment is to install Ce...

How to View All Running Processes in Linux

You can use the ps command. It can display releva...

MySQL uses custom functions to recursively query parent ID or child ID

background: In MySQL, if there is a limited level...

MySql 5.7.21 free installation version configuration method under win10

1. Unzip to the location where you want to instal...

Notes on using $refs in Vue instances

During the development process, we often use the ...

Tomcat8 uses cronolog to split Catalina.Out logs

background If the catalina.out log file generated...

Detailed explanation of MySQL combined index method

For any DBMS, indexes are the most important fact...

HTML hyperlink style (four different states) setting example

Copy code The code is as follows: <style type=...