I、服务器设置 1172.16.10.11 server elk 2172.16.10.12 client filebeat 架构图 filebeat –> logstash –> elasticsearch –> kibana 一、安装依赖 1.安装jdk 1wget https://download.oracle.com/otn/java/jdk/8u211-b12/478a62b7d4e34b78b671c754eaaf38ab/jdk-8u211-linux-x64.tar.gz?AuthParam=1556596505_0708cbbd2951fd1f3f6aa1ae12d05fd5 2tar xf jdk-8u211-linux-x64.tar.gz -C /usr 3cd /usr 4mv jdk1.8.0_211 java 添加环境变量 1cat > /etc/profile.d/java.sh <<EOF 2export JAVA_HOME=/usr/java 3export PATH=\${JAVA_HOME}/bin:\$PATH 4EOF 5source /etc/profile 验证安装 1java -version 2java version "1.8.0_211" 3Java(TM) SE Runtime Environment (build 1.8.0_211-b12) 4Java HotSpot(TM) 64-Bit Server VM (build 25.211-b12, mixed mode) 二、Elasticsearch 1.安装elasticsearch 1wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.7.1.tar.gz 2tar xf elasticsearch-6.7.1.tar.gz -C /usr/local 3cd /usr/local 4mv elasticsearch-6.7.1 elasticsearch 1useradd elasticsearch 1chown -R elasticsearch:elasticsearch elasticsearch 2……
阅读全文