ELK7.3.1 单台部署elasticsearch和kibana
admin
2023-03-05 01:42:23
0
环境初始化
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

使用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

相关内容

热门资讯

汉坦病毒疫情带动概念股上涨,有... 澎湃新闻首席记者 李潇潇5月8日,A股病毒防治概念股上涨明显。“国产分子诊断第一股”达安基因(002...
先拨一百万研究研究:美国空军探... 【文/观察者网 山猫】作为美国空军战略轰炸机“三驾马车”之一的B-52,自1952年首飞至今已有74...
中国也曾有汉坦病毒致死病例,张... 作者:钱童心据央视网5月8日消息,日前中国台北出现一例汉坦病毒致死病例,与老鼠携带病毒有关。这也引发...
“CIA错了”,伊朗外长亮出导... 战争爆发至今,伊朗究竟还拥有多少导弹?伊朗外长宣称导弹库存已恢复至战前的120%,并警告美方不要再肆...
红场阅兵在即:首次取消展示重型... 澎湃新闻记者 薛晶俄罗斯将于5月9日在莫斯科举行卫国战争胜利日阅兵活动。据新华社报道,5月7日,俄罗...
吉林化工园区推动产业转型升级抢... 进入生产旺季,吉林化工园区美思德(吉林)新材料有限公司生产线满负荷运转。在数字化车间内,巨大的信息屏...
我国首台双核原子量子计算机“汉... IT之家 5 月 8 日消息,据央视新闻今日消息,由中国科学院牵头,联合武汉大学、华中科技大学和武汉...
台军前高官怒轰M1A2T战车“... 海峡导报综合报道 民进党当局对美采购108辆M1A2T战车,但台陆军前司令李翔宙怒轰,采购M1A2T...
爆火的“平替游”,正在撕开谁的... 【文/观察者网 邓军 编辑/赵乾坤】受中东地缘局势不确定性及国际油价波动等因素影响,今年“五一”假期...
8名网贷设计者,揭秘大厂如何“... 00后李明,是老同学眼中“别人家的孩子”。他在重点大学读着自己梦想的心理学专业,还计划念博士。每次和...