Linux gradle 安装配置

1. cd /opt/gradle,

下载gradlewget https://downloads.gradle.org/distributions/gradle-4.6-bin.zip

centos7 安装配置gradle

centos7 安装配置gradle2.解压:unzip –d /opt/gradle gradle-4.6-bin.zip

3.修改配置:cd etc/profile, chmod 755 profile, vim profile:

centos7 安装配置gradle添加两行:

PATH=$PATH:/opt/gradle/gradle-4.6/bin

export PATH

centos7 安装配置gradle4.刷新配置文件:source /etc/profile,然后输入gradle --version,出错,因为需要重开一个xshell。

centos7 安装配置gradle5.需新开一个xshell查看版本。

 

相关文章:

  • 2021-05-06
  • 2021-11-14
  • 2021-08-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-20
  • 2022-12-23
  • 2022-12-23
  • 2021-06-17
  • 2021-10-30
  • 2021-11-01
相关资源
相似解决方案