Detailed instructions for installing Jenkins on Ubuntu 16.04

Detailed instructions for installing Jenkins on Ubuntu 16.04

1. Prerequisites

JDK has been installed

echo $PATH

Create a soft link and configure it according to your jdk installation path

ln -s /java/jdk1.8.0_231/bin/java /usr/bin/java

The machine is connected to the Internet

Uninstall Jenkins (skip if already installed)

sudo apt-get remove jenkins
sudo apt-get purge jenkins
sudo apt-get purge --auto-remove jenkins

2. Complete the installation through the following command

wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.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 

3. Start jenkis

sudo /etc/init.d/jenkins [start|restart|stop] 

4. View the installation password

cat /var/lib/jenkins/secrets/initialAdminPassword 

5. Open the browser http://192.168.215.50:8080 (If tomcat is installed on the server, please change the port of jenkins)

$ sudo vi /etc/default/jenkins
#Modify the following content HTTP_PORT=8085
#Restart the jenkins service $ sudo /etc/init.d/jenkins restart 

Enter the password you just queried

6. Select the recommended plugin to install

Wait patiently for the installation

7. Create the first management account

Summarize

The above is a detailed graphic explanation of how to install Jenkins on Ubuntu 16.04. 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:
  • Docker installation of Jenkins full process and stepping on the guide
  • Getting Started Tutorial on Jenkins Installation and Plugin Management Configuration
  • Jenkins environment setup download and installation process
  • Install Jenkins with Docker and solve the problem of initial plugin installation failure
  • Linux installation steps for Jenkins and various problem solving (page access initialization password)
  • How to install Jenkins on CentOS 8
  • Analysis and solution of time zone problem in Jenkins installation

<<:  Vue+express+Socket realizes chat function

>>:  How to solve the problem of case insensitivity in MySQL queries

Recommend

CSS Paint API: A CSS-like Drawing Board

1. Use Canvas images as CSS background images The...

The vue project realizes drawing a watermark in a certain area

This article shares with you how to use Vue to dr...

Detailed examples of converting rows to columns and columns to rows in MySQL

mysql row to column, column to row The sentence i...

How to handle forgotten passwords in Windows Server 2008 R2

What to do if you forget Windows Server 2008R2 So...

Detailed process of Vue front-end packaging

Table of contents 1. Add packaging command 2. Run...

Detailed explanation of nginx optimization in high concurrency scenarios

In daily operation and maintenance work, nginx se...

Analysis of the configuration process of installing mariadb based on docker

1. Installation Search the mariadb version to be ...

MySQL character set viewing and modification tutorial

1. Check the character set 1. Check the MYSQL dat...

202 Free High Quality XHTML Templates (1)

Here 123WORDPRESS.COM presents the first part of ...

Native JS to implement paging click control

This is an interview question, which requires the...