In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to deploy Jenkins under Linux. It is very detailed and has a certain reference value. Friends who are interested must read it!
Jenkins is an open source software project, which is a continuous integration tool based on Java development, which is used to monitor continuous repetitive work. It aims to provide an open and easy-to-use software platform so that software projects can be continuously integrated.
Preparatory work
First, install jdk1.8
1. Download jdk-8u161-linux-i586.tar.gz from the official website, upload the package to the linux server, decompress it, and decompress it to / usr/local/jdk1.8.0_161 here.
2. Configure
Vi / etc/profile, adding at the end of the file
JAVA_HOME=/usr/local/jdk1.8.0_161PATH=$JAVA_HOME/bin:$PATHCLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jarexport JAVA_HOMEexport PATHexport CLASSPATH
Execute source / etc/profile to make the above configuration effective
3. Verify the installation result
Execute java-version on the Linux terminal, and the following similar information is output, which proves that the installation is successful
[root@zcfLinux jdk1.8.0_161] # java-versionjava version "1.8.0mm 161" Java (TM) SE Runtime Environment (build 1.8.0_161-b12) Java HotSpot (TM) Client VM (build 25.161-b12, mixed mode)
Second, install maven
1. Download the installation package
Download-apache-maven-3.6.0-bin.tar.gz from the maven official website and upload it to the linux server
2. Execute the command: tar-zxvf apache-maven-3.6.0-bin.tar.gz decompress the maven installation package
3. Configure environment variables
Vi / etc/profile adds the following at the end of the file:
MAVEN_HOME=/home/apache-maven-3.6.0export MAVEN_HOMEexport PATH=$ {PATH}: ${MAVEN_HOME} / bin
Execute source / etc/profile to make the above configuration effective. 4. Verify whether the installation is successful and execute mvn-version. If you have the following output, the installation is successful.
[root@zcfLinux home] # mvn-versionApache Maven 3.6.0 (97c98ec64a1fdbath 7767ce5ffb20918da4f719f3; 2018-10-25T02:41:47+08:00) Maven home: / home/apache-maven-3.6.0Java version: 1.8.0mm 161, vendor: Oracle Corporation, runtime: / usr/local/jdk1.8.0_161/jreDefault locale: zh_CN, platform encoding: UTF-8OS name: "linux", version: "2.6.32-642.el6.i686", arch: "i386", family: "unix" install jenkins
1. Go to the jenkins official website to download jenkins.war
Download jenkins.war from https://jenkins.io/download/
2. Upload Jenkin.war to linux, and put it directly under the / home directory.
3. Start jenkins: execute java-jar jenkins.war-httpPort=8080 under the / home directory
4. Visit http://ip:8080, in the browser to enter the following page
When prompted, after cat / root/.jenkins/secrets/initialAdminPassword gets a string of characters, enter it into the following administrator password box
Select "Select plug-ins to install", select the corresponding plug-ins as needed, and then continue to the next step.
Installing the plug-in.
When you are finished, go to the Jenkins page
These are all the contents of the article "how to deploy Jenkins under Linux". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.