解压附件 maven.tar 设置两个环境变量 export MAVEN_HOME=/usr/tools/maven/ export PATH=${PATH}:${MAVEN_HOME}/bin 设置完后输入命令mvn -v 查看安装是否成功