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

相关内容

热门资讯

终于了解“莫莫娱乐.有没有挂?... 您好:莫莫娱乐这款游戏可以开挂,确实是有挂的,需要了解加客服微信【4282891】很多玩家在这款游戏...
我来教教您“蜀山四川麻将.真的... 我来教教您“蜀山四川麻将.真的有挂吗?”原来真的有挂您好,蜀山四川麻将这个游戏其实有挂的,确实是有挂...
今日重大通报“欢聚水鱼.怎么开... 今日重大通报“欢聚水鱼.怎么开挂?”透视曝光猫腻您好,欢聚水鱼这个游戏其实有挂的,确实是有挂的,需要...
终于懂了“问鼎娱乐.怎么开挂?... 您好:问鼎娱乐这款游戏可以开挂,确实是有挂的,需要了解加客服微信【4282891】很多玩家在这款游戏...
我来教教您“莫莫娱乐.有没有挂... 有 亲,根据资深记者爆料莫莫娱乐是可以开挂的,确实有挂(咨询软件无需打开...
【第一消息】“兴动棋牌.是不是... 网上科普关于“兴动棋牌有没有挂”话题很是火热,小编也是针对兴动棋牌作*弊开挂的方法以及开挂对应的知识...
【今日要闻】“皇豪众娱炸金花.... 网上科普关于“皇豪众娱炸金花有没有挂”话题很是火热,小编也是针对皇豪众娱炸金花作*弊开挂的方法以及开...
亲绿学者尖锐发问,郑丽文直球对... 海峡导报综合报道 国民党主席郑丽文昨天(22)日晚间接受东吴大学政治学系邀请,以“国民党的改革与青年...
我来教教您“欢乐时光.真的有挂... 家人们!今天小编来为大家解答欢乐时光透视挂怎么安装这个问题咨询软件客服徽4282891的挂在哪里买很...
亲友间私发不雅照违法?央视网评... 2026年1月1日起,新修订的《中华人民共和国治安管理处罚法》(以下简称《治安管理处罚法》)将正式施...