首页 > 系统相关 >linux下安装es+kibana

linux下安装es+kibana

时间:2023-05-07 17:45:24浏览次数:52  
标签:## kibana elasticsearch linux 7.9 es

1、下载安装包

##下载es安装包##
wget https://repo.huaweicloud.com/elasticsearch/7.9.3/elasticsearch-7.9.3-linux-x86_64.tar.gz

##下载kibana安装包##
wget https://artifacts.elastic.co/downloads/kibana/kibana-7.9.3-linux-x86_64.tar.gz

2、安装elasticsearch

  • 解压安装包

    tar -zxvf elasticsearch-7.9.3-linux-x86_64.tar.gz
    mv elasticsearch-7.9.3 elasticsearch
    
  • 创建elasticsearch用户

    useradd es
    chown -R es:es elasticsearch
    
  • 启动elasticsearch

    cd elasticsearch
    su es
    ./bin/elasticsearch -d
    
  • 修改配置文件

    vim /config/elasticsearch.yml
    
    ##配置文件内容如下##
    cluster.name: es-app
    node.name: node-1
    network.host: 192.168.48.48
    http.port: 9200
    discovery.seed_hosts: ["192.168.48.48"]
    cluster.initial_master_nodes: ["node-1"]
    

3、启动elasticsearch

./bin/elasticsearch -d

4、查看是否启动成功

浏览器打开http://192.168.48.48:9200/

显示

{
  "name" : "node-1",
  "cluster_name" : "es-app",
  "cluster_uuid" : "XouSqarsT8a8nZYUK90Bxw",
  "version" : {
    "number" : "7.9.3",
    "build_flavor" : "default",
    "build_type" : "tar",
    "build_hash" : "c4138e51121ef06a6404866cddc601906fe5c868",
    "build_date" : "2020-10-16T10:36:16.141335Z",
    "build_snapshot" : false,
    "lucene_version" : "8.6.2",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

5、安装和启动kibana

  • 解压安装包

    tar -zxvf kibana-7.9.3-linux-x86_64.tar.gz
    
    mv kibana-7.9.3-linux-x86_64 kibana
    
    chown -R es:es kibana
    
  • 修改配置文件

    cd kibana
    vim ./config/kibana.yml
    
    ##文件内容##
    server.port: 5601
    server.host: "192.168.48.48"
    elasticsearch.hosts: ["http://192.168.48.48:9200"]
    
  • 启动kibana

    su es
    
    ##后台启动kibana##
    nohup ./bin/kibana > kibana.log &
    
  • 浏览器打开kibana

    http://192.168.48.48:5601
    

6、遇到问题

  • elasticsearch启动报错

    ....
    [1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
    [2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
    
    
    #######解决方法#######
    su root
    vi /etc/security/limits.conf
    
    ###添加以下内容,其中es为用户名###
    es hard nofile 65535
    es soft nofile 65535
    
    ##修改文件##
    vi /etc/sysctl.conf 
    
    ##添加下面内容##
    vm.max_map_count = 262144
    
    ##查询配置##
    sysctl -p
    
    ##再切换用户,重新启动es###
    su es
    

标签:##,kibana,elasticsearch,linux,7.9,es
From: https://www.cnblogs.com/linmt/p/17379654.html

相关文章

  • (第26章)LinuxC本质中链表、二叉树和哈希表
    文章目录一、单链表的结构决定只能出栈,入栈1.链表的结构2.链表与数组的区别3.单链表所有基本操作代码(1)链表的插入(2)链表的查找(3)链表的删除(3)遍历整个链表(4)销毁整个链表4.习题5.C++NULL指针二、双向链表结构决定可以出队和入队1.在上面的单项链表上改改,得到双向链表2.改进双向链表:新增......
  • Cesium:设置加载时的初始视角
    先选好位置,并调整好视角,然后按F12打开控制台分别输入:viewer.camera.positionviewer.camera.headingviewer.camera.pitchviewer.camera.roll来分别获取你选好的位置的坐标,视角等信息,然后利用viewer.camera.setView进行设置。viewer.camera.setView({//Cesium的坐......
  • response
     方法: 重定向:  路径问题:  response响应字符数据  response响应字节数据;   ......
  • linux挂载的ntfs格式硬盘无法使用回收站
    linux挂载的ntfs格式硬盘无法使用回收站 解决办法:新建回收站文件,文件名为Trash-XXX.比如Trash-1000这里的1000就是你的$UID.sudomkdir/.Trash-1000sudochownuser:user/.Trash-1000 挂载ntfs硬盘时,指定好UID,比如: UUID=XXXXXXXXXXXXX/mnt/Entf......
  • ERROR: pip's dependency resolver does not currently take into account all the pa
    报错原因:ERROR:pip'sdependencyresolverdoesnotcurrentlytakeintoaccountallthepackagesthatareinstalled.Thisbehaviouristhesourceofthefollowingdependencyconflicts.scipy1.7.3requiresnumpy<1.23.0,>=1.16.5,butyouhavenumpy......
  • DGL-tutorials-reading-notes
    DGL教程阅读笔记Datetime:2023-03-27T17:29+08:00Categories:Python|MachineLearning教程网址:https://docs.dgl.ai/en/latest/index.html毕设的笔记,只能给自己看,换一个人或者过一段时间,估计就看不懂了。目录图节点和边representsthegraphrepresentthefeatureshetero......
  • 微信小程序在wxml里不支持includes,indexOf,findIndex等方法
    小程序的wxml文件内不支持数组的includes,indexOf,findIndex等方法。不是垃圾是什么?玩什么标新立异?不会搞就别TM搞。 开发者:我想上二楼。WX:这里有一坨屎,吃子它,就让你上二楼。开发者:@#$%&@^$*^&*&^$%$^ 咋做?在任意目录创建一个.wxs文件,里面写上如下代码:文件-/utils/wuti......
  • [Typescript] Testing type
    1.TSD:https://github.com/SamVerschueren/tsdimport{expectType}from'tsd';importconcatfrom'.';expectType<string>(concat('foo','bar'));expectType<string>(concat(1,2)); 2.Vitest:https://vit......
  • linux下安装kafka
    目录1.下载安装包2.安装java环境(已安装跳过该步骤)3.安装scala环境(已安装跳过该步骤)4.安装并且启动kafka5.使用连接工具测试kafka是否启动成功1.下载安装包##scala安装包##wget https://downloads.lightbend.com/scala/2.12.11/scala-2.12.11.tgz##kafka安装包(kafka3.0.0已......
  • Grafana系列---【linux离线部署Grafana】
    linux离线部署Grafana1.下载和解压缩Grafana从https://grafana.com/grafana/download/下载适合您系统的Grafana压缩包。将下载的文件解压缩到您选择的目录中。2.启动Grafana./bin/grafana-server3.访问GrafanaWeb界面打开浏览器,访问http://localhost:3000。默认账号密码是......