Centos7.2安装maven
Posted 鬼谷山人
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Centos7.2安装maven相关的知识,希望对你有一定的参考价值。
1,下载maven
http://maven.apache.org/download.cgi
2,解压到/usr/local/
3,配置环境变量。
vi /etc/profile
M2_HOME=/usr/local/apache-maven-3.6.0
PATH=$PATH:$M2_HOME/bin
export PATH M2_HOME

4,保存退出后运行下面的命令使配置生效
source /etc/profile
5,验证版本
mvn -v

以上是关于Centos7.2安装maven的主要内容,如果未能解决你的问题,请参考以下文章