Linux安装ES最新版

链接:https://pan.baidu.com/s/16SOoN7ZveFu1ly9B2wudoA?pwd=8fm7

  1.  知识准备
    https://blog.csdn.net/tongxin_tongmeng/article/details/126342599

  2.  下载、解压ES8
  3. ES8上传Linux
  4. ES8运行环境(☆☆☆☆☆)
    1.防火墙打开端口权限
    firewall-cmd --zone=public --add-port=9200/tcp --permanent
    firewall-cmd --reload
    
    2.编辑/etc/security/limits.conf
    *          soft    nofile     65536
    *          hard    nofile     65536
    
    3.编辑/etc/security/limits.d/20-nproc.conf
    *          soft    nofile     65536
    *          hard    nofile     65536
    *          hard    nproc      4096
    
    4.编辑/etc/sysctl.conf
    vm.max_map_count=655360
    重新加载:sysctl -p
    
    注意:重启虚拟机确保修改生效




  5. ES8环境变量
    编辑/etc/profile添加elasticsearch环境变量
    export ES_HOME=/home/elasticsearch/elasticsearch-8.4.1
    export ES_JAVA_HOME=/home/elasticsearch/elasticsearch-8.4.1/jdk
    export PATH=$PATH:$ES_HOME/bin/
    环境变量立刻生效:source /etc/profile
    判断环境变量生效:elasticsearch -d


  6. 创建新用户
    添加用户:useradd es8
    设置密码:passwd es8
    用户授权:chown -R es8:es8 /home/elasticsearch
    切换用户:su es8

  7. ES服务启动、查看、关闭
    启动ES服务:elasticsearch -d
    查看ES服务:ps -ef | grep -i elasticsearch
    关闭ES服务:kill -9 进程号

  8. ES服务访问
  9.  ES8关闭密码认证
    编辑/home/elasticsearch/elasticsearch-8.4.1/config/elasticsearch.yml
    xpack.security.enabled: false
    xpack.security.enrollment.enabled: false
    xpack.security.http.ssl:
      enabled: false
      keystore.path: certs/http.p12

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

童心同萌

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值