Linux安装es-head

 链接:https://pan.baidu.com/s/1jgHtqw4AOdXuZbscyLQPGw?pwd=ulbj

  1. 知识准备
    https://blog.csdn.net/tongxin_tongmeng/article/details/126752683
  2. nodejs安装
    https://blog.csdn.net/tongxin_tongmeng/article/details/127366019
  3. elasticsearch-head安装
    elasticsearch-head-master.zip本地下载解压后上传/home/elasticsearch
    Linux安装es-head_第1张图片
    cnpm install会用到bzip2,判断bzip2是否已安装,如果未安装则yum install bzip2进行安装
    Linux安装es-head_第2张图片
    /home/elasticsearch/elasticsearch-head-master目录下执行命令cnpm install
    Linux安装es-head_第3张图片
  4.  elasticsearch-head启动、查看、关闭
    启动:/home/elasticsearch/elasticsearch-head-master目录下执行命令nohup npm start >/dev/null 2>&1 &
    查看:ps -ef | grep -i grunt
    关闭:kill -9 进程号
    Linux安装es-head_第4张图片
  5.  elasticsearch-head访问
    1.防火墙打开端口权限
    firewall-cmd --zone=public --add-port=9100/tcp --permanent
    firewall-cmd --reload
    
    2.编辑/home/elasticsearch/elasticsearch-8.4.1/config/elasticsearch.yml
    http.cors.enabled: true
    http.cors.allow-origin: "*"
    
    3.重启ES服务:elasticsearch -d
    
    4.访问:http://192.168.1.102:9100

    Linux安装es-head_第5张图片
    Linux安装es-head_第6张图片

    Linux安装es-head_第7张图片

你可能感兴趣的:(elasticsearch,es-head)