目录
安装jdk
yum -y list java*
// 卸载已安装的jdk
yum -y remove java*
// 安装jdk11
yum install -y java-11-openjdk.x86_64
配置jdk环境
vim /etc/profile
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-11.0.23.0.9-2.el7_9.x86_64
export JRE_HOME=/usr/lib/jvm/java-11-openjdk-11.0.23.0.9-2.el7_9.x86_64/jre
export CLASSPATH=.:$CLASSPATH:$JAVA_HOME/lib:$JRE_HOME/lib:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
source /etc/profile
安装maven
apache-maven-3.9.7-bin.tar.gz
mkdir /home/maven3.9.7
cd /home/maven3.9.7
tar -zxvf apache-maven-3.9.7-bin.tar.gz
vi /etc/profile
export M2_HOME=/home/maven3.6/apache-maven-3.6.1
export PATH=$PATH:$M2_HOME/bin
source /etc/profile
mvn -version
安装jenkins
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
wget https://mirrors.tuna.tsinghua.edu.cn/jenkins/redhat-stable/jenkins-2.452.2-1.1.noarch.rpm
yum install /jenkins-2.204.3-1.1.noarch.rpm
service jenkins start
http://10.15.25.213:8080/