What are the steps of installing Jenkins on Linux? This article can be rewarding. Let's take a look at the steps to install Jenkins on Linux.
Git installation is very simple
yum install git git --version
Maven can download and configure environment variables
Download: wget --no-check-certificate https://dlcdn.apache.org/maven/maven- 3/3.8.6/binaries/apache-maven-3.8.6-bin.tar.gz Configure environment variables export M2_HOME=/data/opt/maven/maven-3.8.6 export PATH=$PATH:$M2_HOME/bin
JDk requires Java8 or above, and the latest version should require Java11 or above.
After we are ready, we officially enter the deployment of Jenkins.
wget --no-check-certificate http://pkg.jenkins-ci.org/redhat-stable/jenkins-2.190.3-1.1. noarch.rpm rpm -ivh jenkins-2.190.3-1.1.noarch.rpm
If the speed is slow, you can download it locally and then upload it to the server.
vi /etc/sysconfig/jenkins # Modify the port number to 8880
## Type: integer(0:65535) ## Default: 8080 ## ServiceRestart: jenkins # # Port Jenkins is listening on. # Set to -1 to disable # JENKINS_PORT="8880"
systemctl start jenkins
systemctl status jenkins
When we visit for the first time, the following interface will be prompted, and the waiting time is long.
Change to the image of Tsinghua University, then restart Jenkins
find / -name *.UpdateCenter.xml vi /var/lib/jenkins/hudson.model.UpdateCenter.xml # Change to the following address #https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json
To enter Jenkins, you need to follow the prompts to open the log file to obtain the password, so I won’t go into details.
Choose to install some plug-ins, because of network reasons, there is a high probability that the installation will fail, so you only need to check the last Chinese plug-in.
Set the user name and password as the administrator user, or use admin directly.
The above is the content of this article about the steps to install Jenkins on Linux. I believe everyone has a certain
Copyright Description：No reproduction without permission。
Knowledge sharing community for developers。
Let more developers benefit from it。
Help developers share knowledge through the Internet。