美文网首页开发环境
CentOS7安装maven

CentOS7安装maven

作者: XiaoMaPro | 来源:发表于2022-04-07 22:10 被阅读0次

CentOS7安装maven

wget https://mirrors.tuna.tsinghua.edu.cn/apache/maven/maven-3/3.8.5/binaries/apache-maven-3.8.5-bin.tar.gz

解压到存放位置。

tar -xf apache-maven-3.8.5-bin.tar.gz -C /home/software/

设置环境变量,将下面的三行添加到 /etc/profile 中:

export PATH=$PATH:/home/software/maven-3.8.5/bin

保存关闭后,执行命令立即生效:

source /etc/profile 

相关文章

网友评论

    本文标题:CentOS7安装maven

    本文链接:https://www.haomeiwen.com/subject/fsxesrtx.html