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

你可能感兴趣的:(elasticsearch,搜索引擎,大数据)