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