您当前的位置: 首页 >  童心同萌 linux

Linux安装es-head

童心同萌 发布时间:2022-09-09 13:09:31 ,浏览量:4

 链接: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
    cnpm install会用到bzip2,判断bzip2是否已安装,如果未安装则yum install bzip2进行安装
    /home/elasticsearch/elasticsearch-head-master目录下执行命令cnpm install
  4.  elasticsearch-head启动、查看、关闭
    启动:/home/elasticsearch/elasticsearch-head-master目录下执行命令nohup npm start >/dev/null 2>&1 &
    查看:ps -ef | grep -i grunt
    关闭:kill -9 进程号
  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

关注
打赏
1688896170
查看更多评论

童心同萌

暂无认证

  • 4浏览

    0关注

    87博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文
立即登录/注册

微信扫码登录

0.2353s