ECS上搭建Docker(CentOS7)

ECS上搭建Docker(阿里云CentOS7)

centos下 yum快速安装maven

 

## 安装jdk8
yum install -y java-1.8.0-openjdk*

## 安装maven
wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
yum -y install apache-maven

## 配置环境变量
MAVEN_HOME=/usr/share/apache-maven
export MAVEN_HOME
export PATH=${PATH}:${MAVEN_HOME}/bin

export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/jre/lib/rt.jar
export PATH=$PATH:$JAVA_HOME/bin

 

 

 

 

 
posted on 2019-09-11 11:35  Ruthless  阅读(454)  评论(0编辑  收藏  举报