1、部署JDK maven 并进行解压重命名
cd /usr/local tar -xvf jdk-8u60-linux-x64.tar.gz tar -xvf apache-maven-3.3.9-bin.tar.gz mv apache-maven-3.3.9 maven mv jdk1.8.0_60 jdk
2、配置maven,在maven配置文件中添加阿里云镜像仓库
cd maven/conf vim settings.xml <mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror>
3、部署jenkins
[root@bogon conf]# mkdir -p /var/jenkins [root@bogon conf]# chmod -R 777 /var/jenkins/
docker 部署以及配置腾讯云插件镜像仓库
docker run --name jenkins \ --restart=always \ -p 8081:8080 \ -v/var/jenkins/:/var/jenkins_home \ -v/usr/local/jdk:/usr/local/jdk \ -v/usr/local/maven:/usr/local/maven \ -e JENKINS_UC=https://mirrors.cloud.tencent.com/jenkins/ \ -e JENKINS_UC_DOWNLOAD=https://mirrors.cloud.tencent.com/jenkins/ \ -d jenkins/jenkins:lts
标签:tar,maven,编译,usr,镜像,var,jenkins,local From: https://www.cnblogs.com/libruce/p/16807179.html