1 进入安装目录 /usr/local/ 下载安装包
wget https://downloads.gradle.org/distributions/gradle-5.6.4-bin.zip
2 解压安装包 unzip gradle-5.6.4-bin.zip
3 设置环境变量
vi /etc/profile
export PATH=$PATH:/usr/local/gradle- 5.6.4 /bin
source /etc/profile
4 查看是否安装成功
gradle --version