ottertune的controller部分需要使用Gradle build project, 需要先安装sdkman, 整个安装过程如下.
Official Gradle Installation Doc
dkman Installation Doc
1.安装Java/JDK
[root@ottertune ~]# yum install java-1.8.0* -y
2.下载执行安装脚本
[root@ottertune ~]# curl -s "https://get.sdkman.io" | bash
3.初始化环境变量
[root@ottertune ~]# source "$HOME/.sdkman/bin/sdkman-init.sh"
4.确认是否安装成功
[root@ottertune ~]# sdk version
SDKMAN 5.6.2+294
5.安装Gradle
[root@ottertune ~]# sdk install gradle 4.6
Downloading: gradle 4.6
In progress...
######################################################################## 100.0%
Installing: gradle 4.6
Done installing!
Setting gradle 4.6 as default.
6.查看gradle安装版本
[root@ottertune ~]# gradle -v
------------------------------------------------------------
Gradle 4.6
------------------------------------------------------------
Build time: 2018-02-28 13:36:36 UTC
Revision: 8fa6ce7945b640e6168488e4417f9bb96e4ab46c
Groovy: 2.4.12
Ant: Apache Ant(TM) version 1.9.9 compiled on February 2 2017
JVM: 1.8.0_161 (Oracle Corporation 25.161-b14)
OS: Linux 3.10.0-693.17.1.el7.x86_64 amd64
Be First to Comment