服务器安装部署
安装jdk、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
wget http://mirrors.tuna.tsinghua.edu.cn/apache/maven/maven-3/3.6.2/binaries/apache-maven-3.6.2-bin.tar.gz
## 配置环境变量
$$ vim /etc/profile,内容如下:
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
$$ source /etc/profile
安装docker
$$ yum install docker-io -y
$$ systemctl start docker
$$ docker info
# 配置docker开机自启动
$$ systemctl enable docker.service