For Ubuntu:
1. Download JDK: http://www.oracle.com/technetwork/cn/java/javase/downloads/jdk8-downloads-2133151-zhs.html
2. As a root user, login to copy the jdk-8u92-linux-x64.tar.gz file into the `/temp` directory, use the following command to extract
tar zxvf jdk-8u92-linux-x64.tar.gz
3. Move the decompressed jdk1.8.092 to the `/opt` folder:
root@test:~# mkdir /temp
root@test:~# cd /temp
root@test:/temp# tar zxvf jdk-8u92-linux-x64.tar.gz
root@test:/temp# cd /opt
root@test:/opt# mv /temp/jdk1.8.092/ .
root@test:/opt# ls -l
The total amount of 4 drwxr-xr-x 8 uucp 143 4096 April 1 12:20 jdk1.8.0_92 4
4. Create a soft link in the java `/bin` directory
root@test:/opt# cd /bin
root@test:/bin# ln -s /opt/jdk1.8.0_92/bin/java java
Verification of the correctness of the software pick
root@test:/bin# java -version java version "1.8.092"
Java(TM) SE Runtime Environment (build 1.8.092-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode) 5 Setting up the Java environment
root@test:/bin# gedit /etc/profile
export JAVAHOME=/opt/jdk1.8.092
export JREHOME=${JAVAHOME}/jre
export CLASSPATH=.:${JAVAHOME}/lib:${JREHOME}/lib
export PATH={JAVAHOME}/bin:$PATH
root@test:/bin# source /etc/profile
root@test:/bin# echo $JAVAHOME
/opt/java1.8.0_92 6 to switch to another user authentication
ccskun@test:~$ echo $JAVAHOME /opt/jdk1.8.092
ccskun@test:~$ java -version java version "1.8.092"
Java(TM) SE Runtime Environment (build 1.8.092-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode)
Source: https://www.programmersought.com/article/81962083410/
For MacOS: https://stackoverflow.com/a/53273225
Kibana: To install and configure Kibana, follow the instructions here: https://www.elastic.co/guide/en/kibana/current/targz.html