Linux installation gradle
1. Download gradle
https://gradle.org/install/
Select version download
click to download
You can also download historical versions here
https://services.gradle.org/distributions/
2. Upload the package to the server. The package I downloaded here is 6.7. You can download the version you need.
Unzip the zip package
unzip gradle-8.0.2-all.zip
3. Modify configuration file
vim /etc/profile
OK i enter edit mode
shift+G to enter the last line
Enter the following configuration
#gradle
GRADLE_HOME=/opt/program/gradle/gradle-6.7.1
export PATH= G R A D L E H O M E / b i n : GRADLE_HOME/bin: GRADLEHOME / am:PATH
exit exit editing
:wqSave and launch
Recompile configuration file
source /etc/profile