Elasticsearch&Kibana安装步骤

一、Elasticsearch

1.上传es安装包
put e:/software/elasticsearch-7.4.0-linux-x86_64.tar.gz

2. 将elasticsearch-7.4.0-linux-x86_64.tar.gz解压到opt文件夹下. -C 大写
 tar -zxvf elasticsearch-7.4.0-linux-x86_64.tar.gz  -C /opt

3.创建普通用户

useradd it

password it

4.为新用户授权  

chown -R it:it /opt/elasticsearch-7.4.0 #文件夹所有者

5.修改elasticsearch.yml文件  

vim /opt/elasticsearch-7.4.0/config/elasticsearch.yml

cluster.name: my-application
node.name: node-1
network.host: 0.0.0.0
http.port: 9200
cluster.initial_master_nodes: ["node-1"]

6.修改配置文件

\    # 切换到root用户
su root 

#1. ===最大可创建文件数太小=======
vim /etc/security/limits.conf 
# 在文件末尾中增加下面内容
it soft nofile 65536
it hard nofile 65536
# =====
vim /etc/security/limits.d/20-nproc.conf
# 在文件末尾中增加下面内容
it soft nofile 65536
it hard nofile 65536
*  hard    nproc     4096:q:
# 注:* 代表Linux所有用户名称    

#2. ===最大虚拟内存太小=======
vim /etc/sysctl.conf
# 在文件中增加下面内容
vm.max_map_count=655360
# 重新加载,输入下面命令:
sysctl -p

7、启动elasticsearch

su it  # 切换到it用户启动
cd /opt/elasticsearch-7.4.0/bin
./elasticsearch #启动

8.在访问elasticsearch前,请确保防火墙是关闭的,执行命令

#暂时关闭防火墙
systemctl  stop  firewalld

# 或者 永久设置防火墙状态
systemctl enable firewalld.service  #打开防火墙永久性生效,重启后不会复原 
systemctl disable firewalld.service #关闭防火墙,永久性生效,重启后不会复原 

二、Kibana

1.上传kibana

put ‪E:\software\kibana-7.4.0-linux-x86_64.tar.gz

2.解压kibana

tar -xzf kibana-7.4.0-linux-x86_64.tar.gz -C /opt

3、修改kibana配置

vim /opt/kibana-7.4.0-linux-x86_64/config/kibana.yml

server.port: 5601
server.host: "0.0.0.0"
server.name: "kibana-it"
elasticsearch.hosts: ["http://127.0.0.1:9200"]
elasticsearch.requestTimeout: 99999

4.启动kibana

# 切换到kibana的bin目录
cd /opt/kibana-7.4.0-linux-x86_64/bin
# 启动
./kibana --allow-root

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

五条仁和

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

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

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

打赏作者

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

抵扣说明:

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

余额充值