zoukankan      html  css  js  c++  java
  • elk7.8

    1:elasticserach安装
    rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch

    Create a file called elasticsearch.repo in the /etc/yum.repos.d/ directory for RedHat based distributions, or in the /etc/zypp/repos.d/ directory for OpenSuSE based distributions, containing:

    [elasticsearch]
    name=Elasticsearch repository for 7.x packages
    baseurl=https://artifacts.elastic.co/packages/7.x/yum
    gpgcheck=1
    gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
    enabled=0
    autorefresh=1
    type=rpm-md

    And your repository is ready for use. You can now install Elasticsearch with one of the following commands:

    sudo yum install --enablerepo=elasticsearch elasticsearch 

    2:kibana安装
    rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch

    Create a file called elasticsearch.repo in the /etc/yum.repos.d/ directory for RedHat based distributions, or in the /etc/zypp/repos.d/ directory for OpenSuSE based distributions, containing:

    [elasticsearch]
    name=Elasticsearch repository for 7.x packages
    baseurl=https://artifacts.elastic.co/packages/7.x/yum
    gpgcheck=1
    gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
    enabled=0
    autorefresh=1
    type=rpm-md

    And your repository is ready for use. You can now install Elasticsearch with one of the following commands:

    sudo yum install --enablerepo=elasticsearch elasticsearch 

    3:jdk
    vi /etc/profile 
    #文末添加以下配置
    export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL
    export JAVA_HOME=/usr/share/elasticsearch/jdk
    export PATH=$JAVA_HOME/bin:$PATH
    export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
    #使变量生效
    source /etc/profile
     
    如果更改版本,yum remove elasticsearch
    rm -rf  /var/lib/elasticsearch  /usr/share/elastucsearch
    里面有node_lock 要删除改文件夹
    kibana 同理
    题外修改环境变量
     cat ~/.bashrc 

    export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL
    export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk
    export PATH=$JAVA_HOME/bin:$PATH
    export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

     source ~/.bashrc
    4:

    [root@localhost software]# cat /etc/kibana/kibana.yml |grep -v "^#"
    server.port: 5601
    server.host: "0.0.0.0"
    server.name: "node-1"
    elasticsearch.hosts: ["http://127.0.0.1:9200"]
    kibana.index: ".kibana"

    5:

    [root@localhost software]# cat /etc/elasticsearch/elasticsearch.yml |grep -v "^#"
    node.name: node-1
    path.data: /var/lib/elasticsearch
    path.logs: /var/log/elasticsearch
    network.host: "0.0.0.0"
    http.port: 9200
    cluster.initial_master_nodes: ["node-1"]

  • 相关阅读:
    Java实现 LeetCode 784 字母大小写全排列(DFS)
    Java实现 LeetCode 784 字母大小写全排列(DFS)
    Java实现 LeetCode 783 二叉搜索树节点最小距离(遍历)
    Java实现 LeetCode 783 二叉搜索树节点最小距离(遍历)
    Java实现 LeetCode 783 二叉搜索树节点最小距离(遍历)
    Java实现 LeetCode 781 森林中的兔子(分析题)
    一种机制,与js类似
    图片热区
    我对 aspnetpager和repeater以及查询条件的封装
    我对webform的整改。
  • 原文地址:https://www.cnblogs.com/joycezhou/p/13441708.html
Copyright © 2011-2022 走看看