网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

ELK7.3.1单台部署elasticsearch和kibana

环境初始化
sysctl -w vm.max_map_count=262144
root@jindi-ES:/data/elasticsearch/logs# cat /etc/security/limits.conf
* soft nproc 1000000
* hard nproc 1000000
* soft nofile 1000000
* hard nofile 1000000

获取elasticsearch和kibana

root@fangxin-test:~# wget  https://artifacts.elastic.co/downloads/kibana/kibana-7.3.1-amd64.deb
root@fangxin-test:~# wget  https://artifacts.elastic.co/downloads/kibana/kibana-7.3.1-linux-x86_64.tar.gz
root@fangxin-test:~#  wget  https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.3.1.tar.gz      

root@fangxin-test:~# wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.3.1-amd64.deb

成都创新互联是一家专业提供沙依巴克企业网站建设,专注与成都网站制作、网站建设、H5开发、小程序制作等业务。10年已为沙依巴克众多企业、政府机构等服务。创新互联专业的建站公司优惠进行中。

使用dpkg安装
root@fangxin-test:~# dpkg -i elasticsearch-7.3.1-amd64.deb 
root@fangxin-test:~# dpkg -i kibana-7.3.1-amd64.deb 
配置文件
elasticsearch
root@fangxin-test:~# cat /etc/elasticsearch/elasticsearch.yml |grep -vE "^#|^$"
node.name: es-1
path.data: /data/elasticsearch/data 
path.logs: /data/elasticsearch/logs
network.host: 10.0.109.17 
http.port: 9200
cluster.initial_master_nodes: ["es-1"]
kibana
root@fangxin-test:~# cat /etc/kibana/kibana.yml |grep -vE "^#|^$"
server.host: 10.0.109.17
elasticsearch.hosts: ["http://10.0.109.17:9200"]
启动
root@fangxin-test:~#/etc/init.d/elasticsearch start
root@fangxin-test:~#/etc/init.d/kibana
查看启动
ps -ef|grep -E "el|kibana"

注意 报错处理

.
 ERROR: [1] bootstrap checks failed
[1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured
    添加: elasticsearch.yml 第72行 :cluster.initial_master_nodes: ["es-1"]  es-1是你上面设置的node-name
.
ERROR: [1] bootstrap checks failed
[1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, d                                                                                                                           is    covery.seed_providers, cluster.initial_master_nodes] must be configured
 #修改config/elasticsearch.yml下约第23行,放开node.name注释,可更改名称
 node.name: es-1

新闻名称:ELK7.3.1单台部署elasticsearch和kibana
分享链接:http://bjjierui.cn/article/gjjsop.html

其他资讯