//重命名为maven mv apache-maven-3.3.9-bin maven
vi /etc/profile //在末尾添加 MVN_HOME=/usr/maven export PATH=${MVN_HOME}/bin:${PATH} 重载profile文件 source /etc/profile
mvn -version