elk的搭建----待续

时间:2023-11-22 14:26:50

http://yanliu.org/2015/08/19/ELK-redis%E6%90%AD%E5%BB%BAnginx%E6%97%A5%E5%BF%97%E5%88%86%E6%9E%90%E5%B9%B3%E5%8F%B0/

1,安装jdk

下载地址:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 根据自己的系统版本下载对应的版本号

安装:

 我下载到了/usr/local/下
解压:
tar -zxvf jdk-8u111-linux-x64.tar.gz
配置:
vim /etc/profile.d/java.sh
JAVA_HOME=/usr/local/jdk1..0_111
JAVA_BIN=/usr/local/jdk1..0_111/bin
JRE_HOME=/usr/local/jdk1..0_111/jre
PATH=$PATH:/usr/localjdk1..0_111/bin:/usr/local/jdk1..0_111/jre/bin
CLASSPATH=/usr/local/jdk1..0_111/jre/lib:/usr/local/jdk1..0_111/lib:/usr/local/jdk1..0_111/jre/lib/charsets.jar

加载下:source  /etc/profile.d/java.sh

查看:

 [root@master jdk1..0_111]# java  -version
java -version
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) -Bit Server VM (build 25.111-b14, mixed mode)

成功