debian 9 installed jenkins

A. Install java

Search java installation package

apt-cache search java | grep openjdk

Installation openjdk8

apt-get install openjdk-8-jdk

II. Installation jenkins

Add jenkins source

wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -

sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'

The machine has been installed the update program

apt-get update

Installation jenkins

apt-get install jenkins

Three .jenkins added jdk path

System Management ---> Global jdk configuration tool path / usr / lib / jvm / java-8-openjdk-amd64

Check method ls -lrt / usr / bin / java ls -lrt / etc / alternatives / java

Guess you like

Origin www.cnblogs.com/OpenLJW/p/11301085.html