下载
1、下载cmak
https://github.com/yahoo/CMAK/releases
2、下载java11 jdk
必须11的不然启动会报错
java.lang.UnsupportedClassVersionError: controllers/routes has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
https://download.java.net/java/GA/jdk11/9/GPL/openjdk-11.0.2_linux-x64_bin.tar.gz
安装
1 解压java11 jdk 和 cmak
tar -zxvf openjdk-11.0.2_linux-x64_bin.tar.gz
unzip cmak-3.0.0.5.zip
2、 编辑cmak配置文件
主要修改 zookeeper的服务地址 不然也是没法启动的
vim conf/application.conf
3、启动cmak
记得指定 java11 jdk目录
bin/cmak -Dconfig.file=conf/application.conf -java-home /root/jdk-11.0.2
然后访问 IP:9000 就可以访问管理后台页面了