First, install the operating system, preparation before installation.
1, operating system: Ubuntu 18.04 (We all know the characteristics of Ubuntu, online installation, a lot of convenience)
2, Apt source. Apt source on the official network of many kinds, each version of the source is different, if the other version of the system, should be found on the official website. 18.04 can be used with the following.
# default comment source image to improve apt update speed, if necessary, can be self-uncomment
Deb Https://mirrors.tuna.tsinghua.edu.cn/ubuntu/bionic main restricted universe multiverse
# deb-src Https://mirrors.tuna.tsinghua.edu.cn/ubuntu/bionic main restricted universe multiverse
Deb Https://mirrors.tuna.tsinghua.edu.cn/ubuntu/bionic-updates main restricted universe multiverse
# deb-src Https://mirrors.tuna.tsinghua.edu.cn/ubuntu/bionic-updates main restricted universe multiverse
Deb Https://mirrors.tuna.tsinghua.edu.cn/ubuntu/bionic-backports main restricted universe multiverse
# deb-src Https://mirrors.tuna.tsinghua.edu.cn/ubuntu/bionic-backports main restricted universe multiverse
Deb Https://mirrors.tuna.tsinghua.edu.cn/ubuntu/bionic-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/bionic-security main restricted universe multiverse
# Pre-release software source, not recommended to enable
# deb Https://mirrors.tuna.tsinghua.edu.cn/ubuntu/bionic-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/bionic-proposed main restricted universe multiverse
3, install the JDK. (Install JDK 10 error, I do not know the reason, also do not study here)
Apt-get Install OPENJDK-8-JDK
4. Installation of Jenkins service. (Direct Java Listener port access, no Java container required)
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 ' \
&&apt-get update \
&&apt-get Install Jenkins
These are official orders, there is nothing to parse, are some simple operation.
5, access to services.
Port 8080, follow the prompts to find the password. 10 minutes.
Quickly install Jenkins with Ubuntu