一、安裝wget命令apache
yum -y install wgetmaven
二、下載maven安裝包3d
wget http://mirrors.cnnic.cn/apache/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.tar.gzblog
3.解壓maven安裝包get
tar -zxvf apache-maven-3.5.4-bin.tar.gzio
4.配置maven配置
vi /etc/profilefile
在配置文件配置下載
export MAVEN_HOME=/opt/apache-maven-3.5.4
export PATH=$MAVEN_HOME/bin:$PATHim
配置文件生效
source /etc/profile
5.查看maven
mvn -version