1、下载ElasticSearch+Kibana软件
ElasticSearch:
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.8.13.tar.gz
+
Kibana
https://artifacts.elastic.co/downloads/kibana/kibana-6.8.13-linux-x86_64.tar.gz
2、配置JDK
cat > /etc/profile.d/jdk.sh << 'EOF' #Java Environment Variable JAVA_HOME=/data/application/jdk1.8.0_152 CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib export JAVA_HOME CLASSPATH PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOME/bin #Java end EOF source /etc/profile.d/jdk.sh java -version java version "1.8.0_152" Java(TM) SE Runtime Environment (build 1.8.0_152-b16) Java HotSpot(TM) 64-Bit Server VM (build 25.152-b16, mixed mode)
一、Elasticsearch安装
1、创建存放数据的目录
mkdir /data/elasticsearch-6.8.13/data/
2、制作启动服务
cat > /etc/systemd/system/es.service << 'EOF' [Unit] Description=ElasticSearch Requires=network.service After=network.service [Service] User=es Group=es LimitNOFILE=65536 LimitMEMLOCK=infinity Environment=JAVA_HOME=/data/application/jdk1.8.0_152 ExecStart=/data/elasticsearch-6.8.13/bin/elasticsearch SuccessExitStatus=143 [Install] WantedBy=multi-user.target EOF useradd -s /bin/bash -M es chown -R es.es /data/elasticsearch-6.8.13 chmod +x /etc/systemd/system/es.service systemctl start es
3、检查服务是否启动
~]# netstat -tunlp | grep 9200 tcp6 0 0 192.168.10.95:9200 :::* LISTEN 80554/java ~]# netstat -tunlp | grep 9300 tcp6 0 0 192.168.10.95:9300 :::* LISTEN 80554/java
4、es配置参考如下博客地址
https://www.cnblogs.com/Neeo/articles/10564494.html
二、Kibana的安装
1、解压软件
tar xf kibana-6.8.13-linux-x86_64.tar.gz
2、启动程序
/data/kibana-6.8.13-linux-x86_64/bin/kibana &
3、检查启动端口
~]# netstat -tunlp | grep 5601 tcp 0 0 192.168.10.95:5601 0.0.0.0:* LISTEN 95696/node
4、访问开发工具是否正常