A detailed introduction to setting up Jenkins on Tencent Cloud Server

A detailed introduction to setting up Jenkins on Tencent Cloud Server

1. Connect to Tencent Cloud Server

1. Mac: (Take SSH connection as an example)

Note: The IP address is a public network address.

ssh username@IP address

2.Windonws connection: detailed description

2. Environmental Preparation

Step 1: Install Java

Select the required Java version

yum list | grep openjdk 

Download the corresponding version of java

yum install java-1.8.0-openjdk.x86_64

Step 2: Install Tomcat

You can choose the version you want to download. Go to the tomcat library to view the version you want to download https://mirrors.cnnic.cn/apache/tomcat/, select the required version, and copy the download address

1. Go to the directory you want to install

cd /usr/local/jiangliuer

2. Download tomcat

wget https://mirrors.cnnic.cn/apache/tomcat/tomcat-8/v8.5.73/bin/apache-tomcat-8.5.73.tar.gz

3. Unzip

tar -zxf apache-tomcat-8.5.73.tar.gz

4. Start tomcat (enter the tomcat directory apache-tomcat-8.5.73 and execute)

./bin/startup.sh

5. Open the cloud server terminal

insert image description here

6. Check whether the startup is successful

Enter the cloud server public network ip:8080 in the browser, and the following interface will appear, indicating success.

Jenkins deployment

Download Jenkins.war from the official website: https://www.jenkins.io/download/, select the required version and copy the download address

1. Go to the download directory

insert image description here

2. Download Jenkins.war and deploy it to Tomcat's webapps directory

wget https://get.jenkins.io/war-stable/2.319.1/jenkins.war

After successful download, the following file appears

Download results

3. Access the Jenkins directory in your browser

Enter the cloud server public network ip:8080/jenkins in the browser, and the following interface will appear, indicating success.

insert image description here

Jenkins Installation

1. According to the page path, get the Jenkins password, copy the password from the local and paste it

vi /root/.jenkins/secrets/initialAdminPassword

2. Jump to the page below. It is recommended to select suggested plugins to install recommended plugins. After you are familiar with the basic plugins, you can select Select plugins to install to customize the installed plugins.

insert image description here

3. Create an administrator username and password. Please remember the username and password for future logins.

insert image description here

4. Enter the Jenkins page. At this point, the installation is complete

insert image description here

This is the end of this article about the detailed introduction of setting up Jenkins on Tencent Cloud Server. For more relevant content about setting up Jenkins on Cloud Server, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • A brief discussion on how to choose an operating system for a cloud server
  • How to create a new user on Alibaba Cloud Server
  • Detailed case study of building DolphinScheduler2 scheduling system based on cloud service MRS

<<:  Synchronize the full and incremental data of a specific MySQL table to the message queue - Solution

>>:  HTML code to add quantity badge to message button

Recommend

Building command line applications with JavaScript

Table of contents 1. Install node 2. Install Comm...

How to redraw Button as a circle in XAML

When using XAML layout, sometimes in order to make...

Detailed explanation of the initialization mechanism in bash

Bash Initialization Files Interactive login shell...

HTML table tag tutorial (31): cell width and height attributes WIDTH, HEIGHT

By default, the width and height of the cell are ...

A brief discussion on the use and analysis of nofollow tags

Controversy over nofollow There was a dispute bet...

How to use JavaScript to determine several common browsers through userAgent

Preface Usually when making h5 pages, you need to...

Uncommon but useful tags in Xhtml

Xhtml has many tags that are not commonly used but...

Web page text design should be like smart girls wearing clothes

<br />"There are no ugly women in the w...

Implementation code of front-end HTML skin changing function

50 lines of code to change 5 skin colors, includi...

Teach you how to use MySQL8 recursive method

I have previously written an article about recurs...

Example analysis to fix problems in historical Linux images

Fix for issues with historical Linux images The E...

A brief discussion on the specific use of viewport in mobile terminals

Table of contents 1. Basic Concepts 1.1 Two kinds...

Six important selectors in CSS (remember them in three seconds)

From: https://blog.csdn.net/qq_44761243/article/d...