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 Linux system

2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article is about how to install Jenkins on Linux systems. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Introduction to Jenkins: Jenkins is an extensible continuous integration engine. Because jenkins has a large number of plug-ins, so the degree of freedom is high, it is easy to link with a variety of development environments, and jenkins is open (free) source (fee), so the degree of application is very high.

Another important advantage is that the integrated help documentation is complete, with "?" next to almost every option. Can provide a very clear explanation, easy to get started.

Linux Jenkins installation steps: install Java prerequisite environment: Java8, you can download your own package to install, or use apt-get to install.

# install the default JRE environment sudo apt-get update sudo apt-get install default-jre 123 using apt-get

Install Jenkins wget-Q-O-https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add-sudo sh-c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > / etc/apt/sources.list.d/jenkins.list' sudo apt-get update sudo apt-get install jenkins 1234

Access Jenkins generally speaking, after the installation of Jekins, the service will be enabled automatically.

Jenkins uses port 8080 by default if the port is occupied. Will cause the Jenkins to fail to start, and the port can be changed by compiling / etc/default/jenkins.

Vim / etc/default/jenkins # change HTTP_PORT to a new port number so that when HTTP_PORT=xxxx 123 accesses Jenkins for the first time, you need to do some initialization configuration. First, UnlockJenkins.

# the required password is sudo-s cat / var/lib/jenkins/secrets/initialAdminPassword 123 in the following file

Custom Jenkins: generally speaking, you can choose Install suggested plugins.

Wait for the installation to complete.

Set up an administrator account.

Set Jenkins to access URL. Default is fine, and you can configure it if necessary.

Initialization is complete: click Start Using Jenkins, or visit the Jenkins URL address again, log in and enter the Jenkins working interface.

Thank you for reading! This is the end of the article on "how to install Jenkins in Linux system". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!

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

Development

Wechat

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

12
Report