How to deploy Jenkins under Linux system
Today I will show you how to deploy Jenkins under the Linux system. The content of the article is good. Now I would like to share it with you. Friends who feel in need can understand it. I hope it will be helpful to you. Let's read it along with the editor's ideas.
Jenkins is an open source software project, which is a continuous integration tool based on Java development, which is used to monitor continuous repetitive work. It aims to provide an open and easy-to-use software platform and make continuous integration possible.
Install JDK
Yum install-y java
Install jenkins
Add the Jenkins library to the yum library, where Jenkins will download and install.
Wget-O / etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.reporpm-- import https://pkg.jenkins.io/redhat-stable/jenkins.io.keyyum install-y jenkins
If you can't install it, go to the official website to download jenkis's rmp package, the official website address (http://pkg.jenkins-ci.org/redhat-stable/).
Wget http://pkg.jenkins-ci.org/redhat-stable/jenkins-2.7.3-1.1.noarch.rpmrpm-ivh jenkins-2.7.3-1.1.noarch.rpm1 wget http://pkg.jenkins-ci.org/redhat-stable/jenkins-2.7.3-1.1.noarch.rpmrpm-ivh jenkins-2.7.3-1.1.noarch.rpm
Configure the port of jenkis
Vi / etc/sysconfig/jenkins found the modified port number: JENKINS_PORT= "8080"
Start jenkins
Systemctl start jenkinssystemctl enable jenkins
After successful installation, Jenkins will start with the system as a daemon
The system creates a "jenkins" user to allow the service. If the owner of the service is changed, the owners of / var/log/jenkins, / var/lib/jenkins, and / var/cache/jenkins need to be modified.
Configuration parameters will be obtained from / etc/sysconfig/jenkins at startup
By default, Jenkins runs on port 8080, which is accessed directly in the browser for service configuration
Jenkins's RPM repository configuration is added to / etc/yum.repos.d/jenkins.repo
Open jenkins
Access in the browser
The initial password will be required for the first time entry as shown below
The initial password is: / var/lib/jenkins/secrets/initialAdminPassword
Select "Install suggested plugins" to install the default plug-in, and Jenkins will download the relevant plug-in to install it.
Create a Super Admin account
These are all the contents of how to deploy Jenkins under the Linux system. For more content related to how to deploy Jenkins under the Linux system, you can search the previous articles or browse the following articles to learn! I believe the editor will add more knowledge to you. I hope you can support it!