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

DevOps Environment built from scratch (1)

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

Previously, jenkins has been used as a test environment code release tool in the project, sonar as a static code review tool, idea as a development tool, jira as a defect management platform, and upstream as a code review tool (under research). DevOps has been quite popular recently, but the core seems to be jenkins, which has been preparing to build a standardized platform for 18 years.

Environment:

CentOS Linux release 7.4.1708

1. Install Java

Download jdk-8u162 from Oracle's official website (the latest jdk8, of course)

Because the system has installed its own openjdk

Check the installed version of openjdk:

Rpm-qa | grep jdk

Java-1.8.0-openjdk-1.8.0.144-0.b01.el7_4.x86_64

Java-1.8.0-openjdk-headless-1.8.0.144-0.b01.el7_4.x86_64

Uninstall openjdk

Rpm-e java-1.8.0-openjdk--nodepsrpm-e java-1.8.0-openjdk-headless-- nodeps

Install jdk

Rpm-ivh jdk-8u162-linux-x64.rpm

After successful installation

Run java-version to see that it has been successfully installed

Note: it is installed in the / usr/java/jdk1.8.0_162 directory by default (required later when configuring jenkins)

2. Install jenkins

Download the latest version of jenkins's rpm package on jenkins's official website

Installation:

Rpm-ivh jenkins-2.89.4-1.1.noarch.rpm

Modify jenkins default port (8080, conflict with tomcat default port)

Vim / etc/sysconfig/jenkins

Configure the jdk directory for jenkins (add after candidates)

Vim / etc/rc.d/init.d/jenkins

Start jenkins

Service jenkins start

3. Configure jenkins

Access the virtual machine jenkins address through the browser, requiring you to enter an initialization key to initialize the password (in the linux directory)

View key

Vim / var/lib/jenkins/secrets/initialAdminPassword

A white screen appears after pasting and copying continue

Later, you will be asked to select the plug-in to install, choose to skip, enter the system, and prompt that the password has not been set. The first thing is to set the password for admin, otherwise you will not be able to log in next time. There are many changes to the configuration file on the Internet to achieve the login-free function. Here, you still choose to set a password.

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

Internet Technology

Wechat

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

12
Report