1.下载
wget https://services.gradle.org/distributions/gradle-4.4.1-bin.zip
2.解压
unzip gradle-4.4.1-bin.zip
3.配置环境变量
vi /etc/profile
GRADLE SETTING
GRADLE_HOME=/opt/software/gradle-4.4.1
PATH=GRADLE_HOME/bin
export GRADLE_HOME GRADLE_USER_HOME PATH
source /etc/profile
4.验证