Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Centos7 install jenkins

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

First, install jdk

1. Jenkins needs to run on jdk, so to install jenkins, you need to install jdk in advance. First of all, go to the Oracle official website to download the jdk8 version, the specific download and installation process here is not in-depth, I believe everyone should have installed jdk, really will not own Baidu, there are many tutorials on the Internet.

Download and install jenkins

1. Download jenkin

Log on to jenkins's website and click Download.

If there is no response, drop down the navigation bar and click the centos item.

Right-click to copy link address

Open my Ali CVM, which link address of wget just now

2. Install Jenkins

Sudo rpm-ivh jenkins-2.190.1-1.1.noarch.rpm, because I log in to a root account here, so you can install it directly.

3. Start Jenkin

Systemctl start jenkins or service jenkins start

If it is an Ali CVM, remember to allow access to port 8080 on Ali Cloud, because the default port of jenkins is 8080.

Enter the http:// server ip:8080 in the browser to see the login panel of jenkins, which needs to be configured for the first login.

This password is looked up in the corresponding path of the server.

4. Custom jenkin

5. Create an administrator

6. Instance configuration

7. Installation completed

Third, create a new task 1. Add a project

First create a new project on github, or select the previous one.

Choose to build a free-style project and click OK.

Add github Project url

Add github account password

Select the added account

Click Save to finish adding the project.

2. Build the project

Under construction

Build completed

If npm: command not found is prompted in the console output during construction, configure as follows

3. Configuration

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report