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

How to download excel stream files and set download file name in vue

Table of contents Overview 1. Download via URL 2....

What you need to know about responsive design

Responsive design is to perform corresponding ope...

Example code for implementing triangles and arrows through CSS borders

1. CSS Box Model The box includes: margin, border...

CSS realizes div completely centered without setting height

Require The div under the body is vertically cent...

How to install and persist the postgresql database in docker

Skip the Docker installation steps 1. Pull the po...

Script to quickly list all host names (computer names) in the LAN under Linux

Recently, I have a need to list all host names in...

Solution to docker suddenly not being accessible from the external network

According to the methods of the masters, the caus...

JavaScript single thread and asynchronous details

Table of contents 1. Task Queue 2. To explain som...

Nginx forwarding based on URL parameters

Use scenarios: The jump path needs to be dynamica...

Detailed explanation of the basic commands of Docker run process and image

Table of contents 1. Run workflow 2. Basic comman...

Docker learning method steps to build ActiveMQ message service

Preface ActiveMQ is the most popular and powerful...