In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
* * ideas:
1. Build the environment needed by Jenkins
two。 Choose how to install Jenkins
The process is as follows:
Environment (git, maven, java)
Jdk installation: download the jdk package in advance before uploading / usr/local
Rpm-qa | grep openjdk
Rpm-e-- nodeps deletes the jdk package that comes with it
(wget-O / usr/local/jdk-8u191-linux-x64.tar.gz http://download.oracle.com/otn-pub/java/jdk/8u191-b12/2787e4a523244c269598db4e85c51e0c/jdk-8u231-linux-x64.tar.gz) (wget download does not accept the agreement by default, so it is not adopted)
Cd / usr/local
Tar-xvf jdk-8u231-linux-x64.tar.gz
Vi / etc/profile
Export JAVA_HOME= / usr/local/jdk1.8.0_231
Export CLASSPATH=.:$ {JAVA_HOME} / jre/lib/rt.jar:$ {JAVA_HOME} / lib/dt.jar:$ {JAVA_HOME} / lib/tools.jar
Export PATH=$PATH:$ {JAVA_HOME} / bin
Source / etc/profile
Maven installation: (mvn-v view version)
Wget-O / usr/local/apache-maven-3.6.1-bin.tar.gz http://mirrors.tuna.tsinghua.edu.cn/apache/maven/maven-3/3.6.1/binaries/apache-maven-3.6.1-bin.tar.gz
Cd / usr/local
Tar-zxvf apache-maven-3.6.1-bin.tar.gz
Vi / etc/profile
Export MAVEN_HOME=/usr/local/apache-maven-3.6.1
Export PATH=$PATH:$JAVA_HOME/bin:$MAVEN_HOME/bin
Source / etc/profile
Git installation
Yum install-y git (git-- version) View version
Jenkins installation (choose yum installation)
Cd / etc/yum.repos.d/
Wget http://pkg.jenkins.io/redhat/jenkins.repo
Rpm-- import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
Yum install-y jenkins
Systemctl start jenkins
Finally, open the browser and enter ip:8080 to install it.
Start the jenkins error message:
Starting Jenkins bash: / usr/bin/java: No such file or directory
Solution:
Vim / etc/init.d/jenkins
Join here
Candidates= "
/ setup/tools/jdk1.8.0_144/bin/java # here is the java path to join
Vim / etc/sysconfig/jenkins
Do
[- x "$JENKINS_JAVA_CMD"] & & break
JENKINS_JAVA_CMD= "$candidate" # here is $candidate
Done
Systemctl daemon-reload
Systemctl start Jenkins
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.